Fix x/y axis in goto command
This commit is contained in:
parent
8d5fc922d1
commit
b58a02bf4a
@ -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]));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user