aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Map.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-01-16 17:14:08 +0500
committerAbyss777 <abyss@fox5.ru>2017-01-16 17:14:08 +0500
commitf14608fb8a198ed6ac91df10e5dc976263dcee93 (patch)
treeec74e74a22deecdffa1b09e199632a9e04ae11b6 /web/app/view/Map.js
parent34c878d014a065981d56859cb73564bfa2bc478e (diff)
parent4d092d96d6d872096abaf2f9883d2b578c5c8f72 (diff)
downloadetbsa-traccar-web-f14608fb8a198ed6ac91df10e5dc976263dcee93.tar.gz
etbsa-traccar-web-f14608fb8a198ed6ac91df10e5dc976263dcee93.tar.bz2
etbsa-traccar-web-f14608fb8a198ed6ac91df10e5dc976263dcee93.zip
Merge branch 'master' into manager
# Conflicts: # web/app/view/MapController.js
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 b6f0444..88bdf8b 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