From 6bcc6ab2a9cd097e543ede5ee520034221045b3e Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 28 Oct 2016 14:44:05 +0500 Subject: Use variable --- web/app/view/MapController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/app/view') 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); } -- cgit v1.2.3