X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/701325e9ef6720a16646c7218010e33b5c58d544..8f4a9a4b870f7b15652eb125c675bf635c7b0484:/app/views/changeset/_map.html.erb diff --git a/app/views/changeset/_map.html.erb b/app/views/changeset/_map.html.erb index f052eadbe..88dd53c99 100644 --- a/app/views/changeset/_map.html.erb +++ b/app/views/changeset/_map.html.erb @@ -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 %> }