Fix x/y axis in goto command

This commit is contained in:
Markus Koch 2020-04-19 17:07:07 +02:00
parent 8d5fc922d1
commit b58a02bf4a

View File

@ -348,7 +348,7 @@ function onHashChange(e, hash=null) {
coordstr.push(0); // Default y coordstr.push(0); // Default y
if (coordstr.length < 3) if (coordstr.length < 3)
coordstr.push(mymap.getZoom()); // Default zoom 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])); mymap.setView(latlng, parseInt(coordstr[2]));
} }