aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-15 20:35:16 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-15 20:35:16 +1200
commit0ce1e7c09f0144b65c87377285acafaca1c711f5 (patch)
treeea7e37bb4013bbb660009898ac4b9da79c7f3d95 /web/app
parentb6eecc8e8c0e024aa657e6874350ce0d8f3f372c (diff)
downloadtrackermap-server-0ce1e7c09f0144b65c87377285acafaca1c711f5.tar.gz
trackermap-server-0ce1e7c09f0144b65c87377285acafaca1c711f5.tar.bz2
trackermap-server-0ce1e7c09f0144b65c87377285acafaca1c711f5.zip
Fix inverted map coordinates (fix #1352)
Diffstat (limited to 'web/app')
-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
});