diff options
author | Markus Koch <markus@notsyncing.net> | 2020-04-19 20:12:39 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-04-19 20:12:39 +0200 |
commit | d1e0c3fffac6d79af7dbe7f9d225c426e1c74724 (patch) | |
tree | f128b7ded424a383eb50e635b50e5b679d731b9b /htdocs | |
parent | 9028fc646de7497cb4d321320f0d2ddc52bdf2e0 (diff) | |
download | lifomapserver-d1e0c3fffac6d79af7dbe7f9d225c426e1c74724.tar.gz lifomapserver-d1e0c3fffac6d79af7dbe7f9d225c426e1c74724.tar.bz2 lifomapserver-d1e0c3fffac6d79af7dbe7f9d225c426e1c74724.zip |
Fix x/y swap in jump_to function
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/mapscript.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js index e98f7d2..716c90a 100644 --- a/htdocs/mapscript.js +++ b/htdocs/mapscript.js @@ -184,7 +184,7 @@ function jump_to(latlng, zoom = -1) { if (zoom == -1) zoom = mymap.getZoom(); if (!editor_mode) - document.location.hash = "#" + Math.round(latlng.lat) + "," + Math.round(latlng.lng) + "," + zoom; + document.location.hash = "#" + Math.round(latlng.lng) + "," + Math.round(latlng.lat) + "," + zoom; else mymap.setView(latlng, zoom); } |