]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/changeset/_map.html.erb
Wait for dom:loaded to fire before initialising the map
[rails.git] / app / views / changeset / _map.html.erb
index 5f5f4aa5d158fbec6239feb233f2491eb09bf697..39906af0833925c8098555e331f972bb9b77d80f 100644 (file)
@@ -57,7 +57,8 @@
     var bbox = new OpenLayers.Bounds(minlon, minlat, maxlon, maxlat);
 
     bounds.extend(bbox);
-    box = addBoxToMap(bbox, "<%= edit.id %>", true);
+
+    addBoxToMap(bbox, "<%= edit.id %>", true);
     <% end %>
 
     vectors.events.on({