aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Map.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 21:21:26 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 21:21:26 +1300
commit04e63f9b42991008843f3f9d1788fa6933bd57b3 (patch)
tree7e57e37dbe0e08da7cc10311b0d5f5556d151e5c /web/app/view/Map.js
parent086faa072ddd3e16c28c2ceaceaa90f32a05f7f9 (diff)
downloadtrackermap-server-04e63f9b42991008843f3f9d1788fa6933bd57b3.tar.gz
trackermap-server-04e63f9b42991008843f3f9d1788fa6933bd57b3.tar.bz2
trackermap-server-04e63f9b42991008843f3f9d1788fa6933bd57b3.zip
Change global styles class
Diffstat (limited to 'web/app/view/Map.js')
-rw-r--r--web/app/view/Map.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/app/view/Map.js b/web/app/view/Map.js
index e356c4678..92cab1421 100644
--- a/web/app/view/Map.js
+++ b/web/app/view/Map.js
@@ -70,14 +70,14 @@
source: this.vectorSource
});
- var lat = user.get('latitude') || server.get('latitude') || styles.mapDefaultLat;
- var lon = user.get('longitude') || server.get('longitude') || styles.mapDefaultLon;
- var zoom = user.get('zoom') || server.get('zoom') || styles.mapDefaultZoom;
+ var lat = user.get('latitude') || server.get('latitude') || Traccar.Style.mapDefaultLat;
+ var lon = user.get('longitude') || server.get('longitude') || Traccar.Style.mapDefaultLon;
+ var zoom = user.get('zoom') || server.get('zoom') || Traccar.Style.mapDefaultZoom;
this.mapView = new ol.View({
center: ol.proj.fromLonLat([lon, lat]),
zoom: zoom,
- maxZoom: styles.mapMaxZoom
+ maxZoom: Traccar.Style.mapMaxZoom
});
this.map = new ol.Map({