aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Map.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-13 06:27:31 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-01-13 05:27:31 +1300
commit4d092d96d6d872096abaf2f9883d2b578c5c8f72 (patch)
tree7df9693570493c46ebf994199093b8b05fed3cfc /web/app/view/Map.js
parentede04a679525bb95fcc5ca0a327e8e915f58564e (diff)
downloadetbsa-traccar-web-4d092d96d6d872096abaf2f9883d2b578c5c8f72.tar.gz
etbsa-traccar-web-4d092d96d6d872096abaf2f9883d2b578c5c8f72.tar.bz2
etbsa-traccar-web-4d092d96d6d872096abaf2f9883d2b578c5c8f72.zip
Show accuracy circle on the map
Diffstat (limited to 'web/app/view/Map.js')
-rw-r--r--web/app/view/Map.js10
1 files changed, 10 insertions, 0 deletions
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