diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-03 20:39:14 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-03 20:39:14 +1300 |
commit | d16121684ecae7646aa87616a64d60978d087bc0 (patch) | |
tree | 69a02f798950bc9ee54e33cdf8ae09fed40168e4 /web/app/view/Map.js | |
parent | 8782eeec561e490b4262ba8983e69623daaf5845 (diff) | |
download | trackermap-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.js | 6 |
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(); } } - }); |