From 6a86056a8776cc35de290562cb55939e05ed3020 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sun, 19 Apr 2020 21:04:24 +0200 Subject: [PATCH] Fix x/y axis in get_current_location_str --- htdocs/mapscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */