From 4d092d96d6d872096abaf2f9883d2b578c5c8f72 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 13 Jan 2017 06:27:31 +1300 Subject: Show accuracy circle on the map --- web/app/view/Map.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'web/app/view/Map.js') diff --git a/web/app/view/Map.js b/web/app/view/Map.js index 7f109fd..33fa8bb 100644 --- a/web/app/view/Map.js +++ b/web/app/view/Map.js @@ -89,6 +89,10 @@ Ext.define('Traccar.view.Map', { return this.markersSource; }, + getAccuracySource: function () { + return this.accuracySource; + }, + getRouteSource: function () { return this.routeSource; }, @@ -126,6 +130,12 @@ Ext.define('Traccar.view.Map', { source: this.routeSource })); + this.accuracySource = new ol.source.Vector({}); + this.map.addLayer(new ol.layer.Vector({ + name: 'accuracyLayer', + source: this.accuracySource + })); + this.markersSource = new ol.source.Vector({}); this.map.addLayer(new ol.layer.Vector({ source: this.markersSource -- cgit v1.2.3