diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-13 06:27:31 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-13 05:27:31 +1300 |
commit | 4d092d96d6d872096abaf2f9883d2b578c5c8f72 (patch) | |
tree | 7df9693570493c46ebf994199093b8b05fed3cfc /web/app/view/Map.js | |
parent | ede04a679525bb95fcc5ca0a327e8e915f58564e (diff) | |
download | trackermap-web-4d092d96d6d872096abaf2f9883d2b578c5c8f72.tar.gz trackermap-web-4d092d96d6d872096abaf2f9883d2b578c5c8f72.tar.bz2 trackermap-web-4d092d96d6d872096abaf2f9883d2b578c5c8f72.zip |
Show accuracy circle on the map
Diffstat (limited to 'web/app/view/Map.js')
-rw-r--r-- | web/app/view/Map.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/web/app/view/Map.js b/web/app/view/Map.js index 7f109fdf..33fa8bb7 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 |