Use variable

This commit is contained in:
Abyss777 2016-10-28 14:44:05 +05:00
parent 3c06d96a76
commit 6bcc6ab2a9

View File

@ -215,7 +215,7 @@ Ext.define('Traccar.view.MapController', {
])
])
});
liveLine.setStyle(this.getRouteStyle(position.get('deviceId')));
liveLine.setStyle(this.getRouteStyle(deviceId));
this.liveRoutes[deviceId] = liveLine;
this.getView().getLiveRouteSource().addFeature(liveLine);
}