From d26883a69c8efaf88694ad0b07887461a01a68d9 Mon Sep 17 00:00:00 2001 From: kas Date: Tue, 11 Oct 2016 15:50:13 +0500 Subject: Always show geofences on the Map --- web/app/view/Map.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'web/app/view/Map.js') 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 -- cgit v1.2.3