From b58a02bf4a15bbb0ec18cbd1ea92094d63ffaf02 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sun, 19 Apr 2020 17:07:07 +0200 Subject: [PATCH] Fix x/y axis in goto command --- htdocs/mapscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])); }