X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/13289d404188bd397ee72852f66c415a2bb87066..67182f824e9ace7d5f6d40691e2d3d120b8fbfea:/app/views/changeset/_map.html.erb?ds=sidebyside diff --git a/app/views/changeset/_map.html.erb b/app/views/changeset/_map.html.erb index d0d65d9d7..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? %> - setMapExtent(new OpenLayers.Bounds(<%= @bbox %>)); + map.zoomToExtent(proj(new OpenLayers.Bounds(<%= @bbox %>))); <% else %> - setMapExtent(bounds); + map.zoomToExtent(proj(bounds)); <% end %> }