aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Map.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 20:39:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 20:39:14 +1300
commitd16121684ecae7646aa87616a64d60978d087bc0 (patch)
tree69a02f798950bc9ee54e33cdf8ae09fed40168e4 /web/app/view/Map.js
parent8782eeec561e490b4262ba8983e69623daaf5845 (diff)
downloadtrackermap-server-d16121684ecae7646aa87616a64d60978d087bc0.tar.gz
trackermap-server-d16121684ecae7646aa87616a64d60978d087bc0.tar.bz2
trackermap-server-d16121684ecae7646aa87616a64d60978d087bc0.zip
Move remaining classes to view
Diffstat (limited to 'web/app/view/Map.js')
-rw-r--r--web/app/view/Map.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/web/app/view/Map.js b/web/app/view/Map.js
index 63be7f666..f7a763b9d 100644
--- a/web/app/view/Map.js
+++ b/web/app/view/Map.js
@@ -29,7 +29,6 @@ Ext.define('Traccar.view.Map', {
listeners: {
afterrender: function () {
-
var user = Traccar.app.getUser();
var server = Traccar.app.getServer();
@@ -67,14 +66,14 @@ Ext.define('Traccar.view.Map', {
var zoom = user.get('zoom') || server.get('zoom') || styles.mapDefaultZoom;
this.mapView = new ol.View({
- center: ol.proj.fromLonLat([ lon, lat ]),
+ center: ol.proj.fromLonLat([lon, lat]),
zoom: zoom,
maxZoom: styles.mapMaxZoom
});
this.map = new ol.Map({
target: this.body.dom.id,
- layers: [ layer, vectorLayer ],
+ layers: [layer, vectorLayer],
view: this.mapView
});
},
@@ -83,5 +82,4 @@ Ext.define('Traccar.view.Map', {
this.map.updateSize();
}
}
-
});