]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Show OSM objects for Nominatim search results as map overlays
[rails.git] / app / assets / javascripts / index.js
index 7c80b01081395726d6c57f3e602a42b7ac4f0bbc..519a805bb8442961cd846d543e92b2400a990e84 100644 (file)
@@ -58,6 +58,10 @@ $(document).ready(function () {
       map.setView(centre, data.zoom);
     }
 
+    if (data.type && data.id) {
+      addObjectToMap(data, true);
+    }
+
     if (marker) {
       map.removeLayer(marker);
     }