diff options
author | kas <kas@rusgrad.com> | 2016-10-11 15:50:13 +0500 |
---|---|---|
committer | kas <kas@rusgrad.com> | 2016-10-11 15:50:13 +0500 |
commit | d26883a69c8efaf88694ad0b07887461a01a68d9 (patch) | |
tree | 8c08a3d98b974c65d20efa2d49c086a378d4b078 /web/app/view/Map.js | |
parent | 401ee249a4c7b0de5eeaf32d1cbee4fd0d82a7a8 (diff) | |
download | trackermap-web-d26883a69c8efaf88694ad0b07887461a01a68d9.tar.gz trackermap-web-d26883a69c8efaf88694ad0b07887461a01a68d9.tar.bz2 trackermap-web-d26883a69c8efaf88694ad0b07887461a01a68d9.zip |
Always show geofences on the Map
Diffstat (limited to 'web/app/view/Map.js')
-rw-r--r-- | web/app/view/Map.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/web/app/view/Map.js b/web/app/view/Map.js index d0ec433b..2cbd1714 100644 --- a/web/app/view/Map.js +++ b/web/app/view/Map.js @@ -39,9 +39,18 @@ Ext.define('Traccar.view.Map', { return this.reportSource; }, + getGeofencesSource: function () { + return this.geofencesSource; + }, + initMap: function () { this.callParent(); + this.geofencesSource = new ol.source.Vector({}); + this.map.addLayer(new ol.layer.Vector({ + source: this.geofencesSource + })); + this.latestSource = new ol.source.Vector({}); this.map.addLayer(new ol.layer.Vector({ source: this.latestSource |