From f94eb50f9a33e89364f674da3d0af2fb329947b0 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 4 Apr 2018 12:28:34 +0100 Subject: 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. --- web/js/map-OpenStreetMap.js | 1 + 1 file changed, 1 insertion(+) (limited to 'web/js/map-OpenStreetMap.js') 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), -- cgit v1.2.3