diff options
author | Markus Koch <markus@notsyncing.net> | 2020-04-19 17:07:07 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-04-19 17:07:07 +0200 |
commit | b58a02bf4a15bbb0ec18cbd1ea92094d63ffaf02 (patch) | |
tree | d8ff474c48ac9491870a1d1e11d86ba7d17a4f65 | |
parent | 8d5fc922d17b8ce9be42382ae4e12668bd348c01 (diff) | |
download | lifomapserver-b58a02bf4a15bbb0ec18cbd1ea92094d63ffaf02.tar.gz lifomapserver-b58a02bf4a15bbb0ec18cbd1ea92094d63ffaf02.tar.bz2 lifomapserver-b58a02bf4a15bbb0ec18cbd1ea92094d63ffaf02.zip |
Fix x/y axis in goto command
-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 b22cfd1..e98f7d2 100644 --- a/htdocs/mapscript.js +++ b/htdocs/mapscript.js @@ -348,7 +348,7 @@ function onHashChange(e, hash=null) { coordstr.push(0); // Default y if (coordstr.length < 3) coordstr.push(mymap.getZoom()); // Default zoom - var latlng = L.latLng(parseFloat(coordstr[0]), parseFloat(coordstr[1])); + var latlng = L.latLng(parseFloat(coordstr[1]), parseFloat(coordstr[0])); mymap.setView(latlng, parseInt(coordstr[2])); } |