X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/60363a4c361951f675015c4cd1851d9a06daaa49..a9824dbc2e8763e6fff6f71db7a31cc4761cd245:/app/views/browse/_map.html.erb?ds=sidebyside diff --git a/app/views/browse/_map.html.erb b/app/views/browse/_map.html.erb index 6df060d5c..fda602bf0 100644 --- a/app/views/browse/_map.html.erb +++ b/app/views/browse/_map.html.erb @@ -79,7 +79,7 @@ var bbox = new OpenLayers.Bounds(minlon, minlat, maxlon, maxlat); var centre = bbox.getCenterLonLat(); - setMapExtent(bbox); + map.zoomToExtent(proj(bbox)); addBoxToMap(bbox); $("#loading").hide();