diff options
author | Struan Donald <struan@exo.org.uk> | 2018-04-04 12:28:34 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-04-10 10:42:34 +0100 |
commit | f94eb50f9a33e89364f674da3d0af2fb329947b0 (patch) | |
tree | d65abc41ff6fd358c36752dc4d5be637db405883 /web/js/map-OpenStreetMap.js | |
parent | 68a5ed303f0c74b4ed784bf98930499857e52017 (diff) |
Add layer attribution to attribution control
If a layer has an attribution option then add it to the attribution
control when the layer becomes visible.
Diffstat (limited to 'web/js/map-OpenStreetMap.js')
-rw-r--r-- | web/js/map-OpenStreetMap.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/js/map-OpenStreetMap.js b/web/js/map-OpenStreetMap.js index a742e61ba..4165f8ee4 100644 --- a/web/js/map-OpenStreetMap.js +++ b/web/js/map-OpenStreetMap.js @@ -5,6 +5,7 @@ fixmystreet.maps.config = function() { } fixmystreet.controls = [ new OpenLayers.Control.ArgParser(), + new OpenLayers.Control.Attribution(), //new OpenLayers.Control.LayerSwitcher(), new OpenLayers.Control.Navigation(), new OpenLayers.Control.PermalinkFMS(permalink_id), |