switch to map on geosearch success (fixes #410)

This commit is contained in:
Stefan Breunig 2013-03-08 10:36:33 +01:00
parent a172dee7e3
commit 3f134542cb

View File

@ -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();
}); });