X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/701325e9ef6720a16646c7218010e33b5c58d544..a9824dbc2e8763e6fff6f71db7a31cc4761cd245:/app/views/browse/_map.html.erb diff --git a/app/views/browse/_map.html.erb b/app/views/browse/_map.html.erb index 333fc9f30..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(); - map.setExtent(proj(bbox)); + map.zoomToExtent(proj(bbox)); addBoxToMap(bbox); $("#loading").hide();