aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/app/Resources.js4
-rw-r--r--web/app/view/map/Map.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/web/app/Resources.js b/web/app/Resources.js
index 851658646..73cee7b2d 100644
--- a/web/app/Resources.js
+++ b/web/app/Resources.js
@@ -26,8 +26,8 @@ var styles = {
reportTime: 100,
reportFormat: 'Y-m-d H:i:s',
- mapDefaultLat: -0.1275,
- mapDefaultLon: 51.507222,
+ mapDefaultLat: 51.507222,
+ mapDefaultLon: -0.1275,
mapDefaultZoom: 6,
mapMaxZoom: 19,
diff --git a/web/app/view/map/Map.js b/web/app/view/map/Map.js
index 6b323e555..9d9a92886 100644
--- a/web/app/view/map/Map.js
+++ b/web/app/view/map/Map.js
@@ -63,7 +63,7 @@ Ext.define('Traccar.view.map.Map', {
var zoom = user.get('zoom') || server.get('zoom') || styles.mapDefaultZoom;
this.mapView = new ol.View({
- center: ol.proj.fromLonLat([lat, lon]),
+ center: ol.proj.fromLonLat([ lon, lat ]),
zoom: zoom,
maxZoom: styles.mapMaxZoom
});