diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-21 09:56:31 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-21 09:56:31 +0000 |
commit | dd559d8557ca1d33464cabb5cff205f7fe42561d (patch) | |
tree | 15fa52dbdcb9a45104fde76e8ea836557b0e72ed /web/js/map-wmts-zurich.js | |
parent | 8445467dfacebc3f4ce202bc7fe97bf3aa4e8399 (diff) |
Treat link from report page to around page as permalink to maintain state better.
Diffstat (limited to 'web/js/map-wmts-zurich.js')
-rw-r--r-- | web/js/map-wmts-zurich.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/js/map-wmts-zurich.js b/web/js/map-wmts-zurich.js index eb7678c40..9fed68b8a 100644 --- a/web/js/map-wmts-zurich.js +++ b/web/js/map-wmts-zurich.js @@ -71,6 +71,11 @@ $(function(){ fixmystreet.controls.push( new OpenLayers.Control.PanZoomFMS({id: 'fms_pan_zoom' }) ); } + /* Linking back to around from report page, keeping track of map moves */ + if ( fixmystreet.page == 'report' ) { + fixmystreet.controls.push( new OpenLayers.Control.PermalinkFMS('key-tool-problems-nearby', '/around') ); + } + fixmystreet.map_type = OpenLayers.Layer.WMTS; // Set DPI - default is 72 |