From 9311c7c764da0cd626aacc6f2ad8dc26f19ca506 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Mon, 16 Oct 2017 10:54:34 +0500 Subject: Make liveRoute layer initial visibility dependent from stored button state. --- web/app/view/map/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/app/view') diff --git a/web/app/view/map/Map.js b/web/app/view/map/Map.js index 82b76ee5..e906e6c4 100644 --- a/web/app/view/map/Map.js +++ b/web/app/view/map/Map.js @@ -119,7 +119,7 @@ Ext.define('Traccar.view.map.Map', { this.liveRouteSource = new ol.source.Vector({}); this.liveRouteLayer = new ol.layer.Vector({ source: this.liveRouteSource, - visible: false + visible: this.lookupReference('showLiveRoutes').pressed }); this.map.addLayer(this.liveRouteLayer); -- cgit v1.2.3