aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-bing-ol.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-21 18:42:53 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-21 18:42:53 +0000
commit53f2d3295ed9c29d9c7827e35a2d66345cc7794d (patch)
tree723854c80340fa4baa3c78903bf8f1f72dde2987 /web/js/map-bing-ol.js
parent9a0bfb557a157e7b9bd368258c03e599a1fe3597 (diff)
Track map panning on report page link back to /around.
Diffstat (limited to 'web/js/map-bing-ol.js')
-rw-r--r--web/js/map-bing-ol.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/js/map-bing-ol.js b/web/js/map-bing-ol.js
index 6d86663f0..0525e53d3 100644
--- a/web/js/map-bing-ol.js
+++ b/web/js/map-bing-ol.js
@@ -19,6 +19,11 @@ function set_map_config(perm) {
new OpenLayers.Control.Permalink(permalink_id),
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') );
+ }
+
if (fixmystreet.map_type) {
tile_base = fixmystreet.map_type;
}