aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/app/view/MapController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index b2dcd75d..050adce1 100644
--- a/web/app/view/MapController.js
+++ b/web/app/view/MapController.js
@@ -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);
}