From 18466c1477b47c7d8abf186d78f4ba21df9c18ff Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 29 Jun 2011 16:33:05 +0100 Subject: On Your Reports page, zoom map out to cover markers shown. --- web/js/map-OpenLayers.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web/js/map-OpenLayers.js') diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 83e535f1c..e4de17764 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -65,6 +65,9 @@ YAHOO.util.Event.onContentReady('map', function() { fixmystreet.markers.addMarker(marker); } fixmystreet.map.addLayer(fixmystreet.markers); + if ( fixmystreet.zoomToBounds ) { + fixmystreet.map.zoomToExtent( fixmystreet.markers.getDataExtent() ); + } }); -- cgit v1.2.3