Fix x/y swap in jump_to function
This commit is contained in:
parent
9028fc646d
commit
d1e0c3fffa
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user