]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/changeset/_map.html.erb
Prefer using _html locale keys to the raw function
[rails.git] / app / views / changeset / _map.html.erb
index d0d65d9d77153bd85a31a6a0e3ac72e77efa1246..88dd53c99a8e7847ee51119148bca318ea72405a 100644 (file)
@@ -80,9 +80,9 @@
     selectControl.activate();
 
     <% if ! @bbox.nil? %>
-      setMapExtent(new OpenLayers.Bounds(<%= @bbox %>));
+      map.zoomToExtent(proj(new OpenLayers.Bounds(<%= @bbox %>)));
     <% else %>
-      setMapExtent(bounds);
+      map.zoomToExtent(proj(bounds));
     <% end %>
   }