From d1e0c3fffac6d79af7dbe7f9d225c426e1c74724 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sun, 19 Apr 2020 20:12:39 +0200 Subject: Fix x/y swap in jump_to function --- htdocs/mapscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js index e98f7d2..716c90a 100644 --- a/htdocs/mapscript.js +++ b/htdocs/mapscript.js @@ -184,7 +184,7 @@ function jump_to(latlng, zoom = -1) { if (zoom == -1) zoom = mymap.getZoom(); if (!editor_mode) - document.location.hash = "#" + Math.round(latlng.lat) + "," + Math.round(latlng.lng) + "," + zoom; + document.location.hash = "#" + Math.round(latlng.lng) + "," + Math.round(latlng.lat) + "," + zoom; else mymap.setView(latlng, zoom); } -- cgit v1.2.3