aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Map.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-12-29 18:03:24 +0500
committerAbyss777 <abyss@fox5.ru>2016-12-29 18:03:24 +0500
commitd9fe5597ece43539dd52d292720ade0edbd4f619 (patch)
treef415578cadb4c249a136229dd49e5de837839591 /web/app/view/Map.js
parentd9be85d9928a9c511335a3a2eb231dcfd1fb1d5a (diff)
downloadtrackermap-web-d9fe5597ece43539dd52d292720ade0edbd4f619.tar.gz
trackermap-web-d9fe5597ece43539dd52d292720ade0edbd4f619.tar.bz2
trackermap-web-d9fe5597ece43539dd52d292720ade0edbd4f619.zip
- Combine latest and report markers to one layer
- Bring to front selected marker
Diffstat (limited to 'web/app/view/Map.js')
-rw-r--r--web/app/view/Map.js17
1 files changed, 4 insertions, 13 deletions
diff --git a/web/app/view/Map.js b/web/app/view/Map.js
index 062bf4cb..7f109fdf 100644
--- a/web/app/view/Map.js
+++ b/web/app/view/Map.js
@@ -85,18 +85,14 @@ Ext.define('Traccar.view.Map', {
}]
},
- getLatestSource: function () {
- return this.latestSource;
+ getMarkersSource: function () {
+ return this.markersSource;
},
getRouteSource: function () {
return this.routeSource;
},
- getReportSource: function () {
- return this.reportSource;
- },
-
getGeofencesSource: function () {
return this.geofencesSource;
},
@@ -125,19 +121,14 @@ Ext.define('Traccar.view.Map', {
});
this.map.addLayer(this.liveRouteLayer);
- this.latestSource = new ol.source.Vector({});
- this.map.addLayer(new ol.layer.Vector({
- source: this.latestSource
- }));
-
this.routeSource = new ol.source.Vector({});
this.map.addLayer(new ol.layer.Vector({
source: this.routeSource
}));
- this.reportSource = new ol.source.Vector({});
+ this.markersSource = new ol.source.Vector({});
this.map.addLayer(new ol.layer.Vector({
- source: this.reportSource
+ source: this.markersSource
}));
}
});