diff options
author | Markus Koch <markus@notsyncing.net> | 2020-04-19 21:04:24 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-04-19 21:04:24 +0200 |
commit | 6a86056a8776cc35de290562cb55939e05ed3020 (patch) | |
tree | f22653cbd5c5dc28f988a72c4f600af3c2a35ff4 | |
parent | ab2e50f851467363ff643a165b4f0e1d4dabbe5c (diff) | |
download | lifomapserver-6a86056a8776cc35de290562cb55939e05ed3020.tar.gz lifomapserver-6a86056a8776cc35de290562cb55939e05ed3020.tar.bz2 lifomapserver-6a86056a8776cc35de290562cb55939e05ed3020.zip |
Fix x/y axis in get_current_location_str
-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 1ad176e..abba88c 100644 --- a/htdocs/mapscript.js +++ b/htdocs/mapscript.js @@ -176,7 +176,7 @@ L.control.scale().addTo(mymap); function get_current_location_str() { var latlng = mymap.getCenter(); - return Math.round(latlng.lat) + "," + Math.round(latlng.lng) + "," + mymap.getZoom(); + return Math.round(latlng.lng) + "," + Math.round(latlng.lat) + "," + mymap.getZoom(); } /* Important: Do not use mymap.setView, use this function instead */ |