]> git.openstreetmap.org Git - rails.git/commitdiff
Nominatim results zoom to the result location
authorAaron Lidman <aaronlidman@gmail.com>
Wed, 20 Nov 2013 20:37:57 +0000 (12:37 -0800)
committerAaron Lidman <aaronlidman@gmail.com>
Wed, 20 Nov 2013 20:37:57 +0000 (12:37 -0800)
app/assets/javascripts/index/search.js

index 6efba746e54985ca4916bdc16ffdd96d1ae9cdab..c1c95a3e43aee61ce1698ee2dd3706d82f21e7ae 100644 (file)
@@ -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]]);