diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-09-05 20:36:43 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-09-19 13:48:24 +0100 |
commit | 215b9b2286ea245eb439ed8b0bd9b1c8e7bc14e7 (patch) | |
tree | 590d1663cb5ce976e57a07a99ffb18e3978fa286 /web/js/map-OpenStreetMap.js | |
parent | 5353decc4436e4ae5d1fcf630f09d2c206df1f3e (diff) |
Remove on-map permalink.
We retain the code as it is updating the URL on map move.
Diffstat (limited to 'web/js/map-OpenStreetMap.js')
-rw-r--r-- | web/js/map-OpenStreetMap.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/web/js/map-OpenStreetMap.js b/web/js/map-OpenStreetMap.js index 52eb95493..9ed3a2ee3 100644 --- a/web/js/map-OpenStreetMap.js +++ b/web/js/map-OpenStreetMap.js @@ -1,14 +1,10 @@ fixmystreet.maps.config = function() { - var permalink_id; - if ($('#map_permalink').length) { - permalink_id = 'map_permalink'; - } fixmystreet.controls = [ new OpenLayers.Control.ArgParserFMS(), new OpenLayers.Control.Attribution(), //new OpenLayers.Control.LayerSwitcher(), new OpenLayers.Control.Navigation(), - new OpenLayers.Control.PermalinkFMS(permalink_id), + new OpenLayers.Control.PermalinkFMS('map'), new OpenLayers.Control.PanZoomFMS({id: 'fms_pan_zoom' }) ]; }; |