Fix x/y swap in jump_to function

This commit is contained in:
Markus Koch 2020-04-19 20:12:39 +02:00
parent 9028fc646d
commit d1e0c3fffa
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}