]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/changeset/_map.html.erb
Change abstraction level for map functions
[rails.git] / app / views / changeset / _map.html.erb
index d0d65d9d77153bd85a31a6a0e3ac72e77efa1246..f052eadbe74828d5c410e9b1f1eb2f57ea2aec4f 100644 (file)
@@ -80,9 +80,9 @@
     selectControl.activate();
 
     <% if ! @bbox.nil? %>
-      setMapExtent(new OpenLayers.Bounds(<%= @bbox %>));
+      map.setExtent(proj(new OpenLayers.Bounds(<%= @bbox %>)));
     <% else %>
-      setMapExtent(bounds);
+      map.setExtent(proj(bounds));
     <% end %>
   }