diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-29 16:33:05 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-29 22:44:06 +0100 |
commit | 18466c1477b47c7d8abf186d78f4ba21df9c18ff (patch) | |
tree | ccad58f3ecda6bcf4cb4e9b86d337f86dc0b087c /web/js/map-OpenLayers.js | |
parent | 00567425ca491a8fc69770246357a4569f450455 (diff) |
On Your Reports page, zoom map out to cover markers shown.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 3 |
1 files changed, 3 insertions, 0 deletions
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() ); + } }); |