summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--htdocs/mapscript.js2
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 */