diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-01-09 17:22:56 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-01-10 10:36:46 +0000 |
commit | 3abb9d14c6879d0dca1f88329ea4bcf6b31d44ee (patch) | |
tree | 2bc1f49bb3f3141fc031c34bb2cd46c3e1262bf3 /web/js/map-wmts-isleofwight.js | |
parent | 757cacc10f51a9c54d02c392e9e39e23202dac72 (diff) |
Use our own Permalink class.
We are overriding quite a bit of it and not using other bits,
so it will be less code to only have our own Control.
Diffstat (limited to 'web/js/map-wmts-isleofwight.js')
-rw-r--r-- | web/js/map-wmts-isleofwight.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/web/js/map-wmts-isleofwight.js b/web/js/map-wmts-isleofwight.js index 57e41e696..0e725e3f1 100644 --- a/web/js/map-wmts-isleofwight.js +++ b/web/js/map-wmts-isleofwight.js @@ -163,15 +163,10 @@ fixmystreet.maps.matrix_ids = [ * to setup the way the map should operate. */ fixmystreet.maps.config = function() { - var permalink_id; - if ($('#map_permalink').length) { - permalink_id = 'map_permalink'; - } - fixmystreet.controls = [ new OpenLayers.Control.ArgParserFMS(), new OpenLayers.Control.Navigation(), - new OpenLayers.Control.PermalinkFMS(permalink_id), + new OpenLayers.Control.PermalinkFMS('map'), new OpenLayers.Control.PanZoomFMS({id: 'fms_pan_zoom' }) ]; |