switch to map on geosearch success (fixes #410)
This commit is contained in:
parent
a172dee7e3
commit
3f134542cb
@ -12,6 +12,7 @@ window.setupGeosearch = function() {
|
|||||||
northEast = new L.LatLng(b[1], b[3]),
|
northEast = new L.LatLng(b[1], b[3]),
|
||||||
bounds = new L.LatLngBounds(southWest, northEast);
|
bounds = new L.LatLngBounds(southWest, northEast);
|
||||||
window.map.fitBounds(bounds);
|
window.map.fitBounds(bounds);
|
||||||
|
if(window.isSmartphone()) window.smartphone.mapButton.click();
|
||||||
});
|
});
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user