Nominatim results zoom to the result location
This commit is contained in:
parent
5384ee236c
commit
86ae401aac
1 changed files with 0 additions and 5 deletions
|
@ -29,11 +29,6 @@ OSM.Search = function(map) {
|
|||
var data = $(this).data(),
|
||||
center = L.latLng(data.lat, data.lon);
|
||||
|
||||
if (data.type && data.id) return; // Browse link
|
||||
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
if (data.minLon && data.minLat && data.maxLon && data.maxLat) {
|
||||
map.fitBounds([[data.minLat, data.minLon],
|
||||
[data.maxLat, data.maxLon]]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue