X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/60363a4c361951f675015c4cd1851d9a06daaa49..ed98d71417d46dedf5fed63cd51e92a314e7ff3b:/app/views/browse/_map.html.erb 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();