From 3e8b54a49fcd42d8b03bb153ba66484282394e43 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Fri, 28 Jun 2013 12:45:30 +0100 Subject: we need to explicitly deactivate and activate the control that displays the reposition button when we deactivate and activate the map nav as otherwise it doesn't work when we return to the map screen. --- www/js/map-OpenLayers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'www/js/map-OpenLayers.js') diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js index e913502..35def29 100644 --- a/www/js/map-OpenLayers.js +++ b/www/js/map-OpenLayers.js @@ -180,7 +180,8 @@ function fixmystreet_onload() { } if (fixmystreet.page == 'around' ) { - fixmystreet.map.addControl( new OpenLayers.Control.ActionAfterDrag({'autoActivate': true}) ); + fixmystreet.actionafterdrag = new OpenLayers.Control.ActionAfterDrag({'autoActivate': true}); + fixmystreet.map.addControl(fixmystreet.actionafterdrag); fixmystreet.map.addControl( new OpenLayers.Control.Crosshairs(null) ); } } -- cgit v1.2.3