aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Map.js
diff options
context:
space:
mode:
authorkas <kas@rusgrad.com>2016-10-11 15:50:13 +0500
committerkas <kas@rusgrad.com>2016-10-11 15:50:13 +0500
commitd26883a69c8efaf88694ad0b07887461a01a68d9 (patch)
tree8c08a3d98b974c65d20efa2d49c086a378d4b078 /web/app/view/Map.js
parent401ee249a4c7b0de5eeaf32d1cbee4fd0d82a7a8 (diff)
downloadetbsa-traccar-web-d26883a69c8efaf88694ad0b07887461a01a68d9.tar.gz
etbsa-traccar-web-d26883a69c8efaf88694ad0b07887461a01a68d9.tar.bz2
etbsa-traccar-web-d26883a69c8efaf88694ad0b07887461a01a68d9.zip
Always show geofences on the Map
Diffstat (limited to 'web/app/view/Map.js')
-rw-r--r--web/app/view/Map.js9
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