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