]> git.openstreetmap.org Git - rails.git/commitdiff
Restore marker for non-browse search results
authorJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 5 Dec 2013 19:07:52 +0000 (11:07 -0800)
committerTom Hughes <tom@compton.nu>
Thu, 5 Dec 2013 19:10:48 +0000 (19:10 +0000)
Fixes #615

app/assets/javascripts/index/search.js

index 6b6f3231f2b0f3fca684e3d4a93ecf7931c2d449..3892d01a09939cc5c61f475ba88d45f3adbf6771 100644 (file)
@@ -38,6 +38,8 @@ OSM.Search = function(map) {
     // Let clicks to object browser links propagate.
     if (data.type && data.id) return;
 
+    marker.setLatLng(center).addTo(map);
+
     e.preventDefault();
     e.stopPropagation();
   }