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)
downloadtrackermap-web-f14608fb8a198ed6ac91df10e5dc976263dcee93.tar.gz
trackermap-web-f14608fb8a198ed6ac91df10e5dc976263dcee93.tar.bz2
trackermap-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 b6f04446..88bdf8b4 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