aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/Map.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-13 18:28:38 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-13 18:28:38 +1200
commit9fea9e469c9856f6f6a90fb970474873fe4a9dfb (patch)
tree983b7199dbdcfab4708a57d56eeeda0ea6bbe7f3 /web/app/view/map/Map.js
parent13448f34e263f27610391781d526353791c36026 (diff)
downloadtrackermap-server-9fea9e469c9856f6f6a90fb970474873fe4a9dfb.tar.gz
trackermap-server-9fea9e469c9856f6f6a90fb970474873fe4a9dfb.tar.bz2
trackermap-server-9fea9e469c9856f6f6a90fb970474873fe4a9dfb.zip
Implement selection panning
Diffstat (limited to 'web/app/view/map/Map.js')
-rw-r--r--web/app/view/map/Map.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/map/Map.js b/web/app/view/map/Map.js
index 449293e2f..bf1f1328b 100644
--- a/web/app/view/map/Map.js
+++ b/web/app/view/map/Map.js
@@ -38,7 +38,7 @@ Ext.define('Traccar.view.map.Map', {
source: this.vectorSource
});
- var view = new ol.View({
+ this.mapView = new ol.View({
center: ol.proj.fromLonLat(styles.map_center),
zoom: styles.map_zoom,
maxZoom: styles.map_max_zoom
@@ -47,7 +47,7 @@ Ext.define('Traccar.view.map.Map', {
this.map = new ol.Map({
target: this.body.dom.id,
layers: [ layer, vectorLayer ],
- view: view
+ view: this.mapView
});
},