From 0ce1e7c09f0144b65c87377285acafaca1c711f5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 15 Aug 2015 20:35:16 +1200 Subject: Fix inverted map coordinates (fix #1352) --- web/app/Resources.js | 4 ++-- web/app/view/map/Map.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'web') 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 }); -- cgit v1.2.3