diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-10-16 13:59:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-16 13:59:11 +0800 |
commit | 531f9d5c556e9795b32099587bfa84f3b74017c4 (patch) | |
tree | 6eb684e9db34a2d0680ffdf08250ca37607f1fc2 /web/app/view | |
parent | 24b1b63fb2af68cd23362965e947f4dbf76d087e (diff) | |
parent | 9311c7c764da0cd626aacc6f2ad8dc26f19ca506 (diff) | |
download | trackermap-web-531f9d5c556e9795b32099587bfa84f3b74017c4.tar.gz trackermap-web-531f9d5c556e9795b32099587bfa84f3b74017c4.tar.bz2 trackermap-web-531f9d5c556e9795b32099587bfa84f3b74017c4.zip |
Merge pull request #602 from Abyss777/fix_601
Make liveRoute layer initial visible if needed
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/map/Map.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); |