It's zoomToExtent, not setExtent
[rails.git] / app / views / changeset / _map.html.erb
index f052eadbe74828d5c410e9b1f1eb2f57ea2aec4f..88dd53c99a8e7847ee51119148bca318ea72405a 100644 (file)
@@ -80,9 +80,9 @@
     selectControl.activate();
 
     <% if ! @bbox.nil? %>
-      map.setExtent(proj(new OpenLayers.Bounds(<%= @bbox %>)));
+      map.zoomToExtent(proj(new OpenLayers.Bounds(<%= @bbox %>)));
     <% else %>
-      map.setExtent(proj(bounds));
+      map.zoomToExtent(proj(bounds));
     <% end %>
   }