diff options
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(); } } - }); |