aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-10-16 10:54:34 +0500
committerAbyss777 <abyss@fox5.ru>2017-10-16 10:54:34 +0500
commit9311c7c764da0cd626aacc6f2ad8dc26f19ca506 (patch)
tree6eb684e9db34a2d0680ffdf08250ca37607f1fc2
parent24b1b63fb2af68cd23362965e947f4dbf76d087e (diff)
downloadetbsa-traccar-web-9311c7c764da0cd626aacc6f2ad8dc26f19ca506.tar.gz
etbsa-traccar-web-9311c7c764da0cd626aacc6f2ad8dc26f19ca506.tar.bz2
etbsa-traccar-web-9311c7c764da0cd626aacc6f2ad8dc26f19ca506.zip
Make liveRoute layer initial visibility dependent from stored button state.
-rw-r--r--web/app/view/map/Map.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/map/Map.js b/web/app/view/map/Map.js
index 82b76ee..e906e6c 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);