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

View File

@ -184,7 +184,7 @@ function jump_to(latlng, zoom = -1) {
if (zoom == -1) if (zoom == -1)
zoom = mymap.getZoom(); zoom = mymap.getZoom();
if (!editor_mode) 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 else
mymap.setView(latlng, zoom); mymap.setView(latlng, zoom);
} }