diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-12 16:41:59 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-12 16:41:59 +1300 |
commit | 56d37a27017a1e47ec858195d910b438377d47b9 (patch) | |
tree | d0abcfc085e8467acc71b3bdc1f8982d4cf24e2c /web/app/view/Map.js | |
parent | 401ee249a4c7b0de5eeaf32d1cbee4fd0d82a7a8 (diff) | |
parent | 561f459f3386f44c12da315e46b5275ba7d4a3cf (diff) | |
download | etbsa-traccar-web-56d37a27017a1e47ec858195d910b438377d47b9.tar.gz etbsa-traccar-web-56d37a27017a1e47ec858195d910b438377d47b9.tar.bz2 etbsa-traccar-web-56d37a27017a1e47ec858195d910b438377d47b9.zip |
Merge pull request #295 from Abyss777/show_geofences
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 d0ec433..2cbd171 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 |