diff --git a/VIPSWeb/static/js/frontpageMap.js b/VIPSWeb/static/js/frontpageMap.js index 64dfe9f907380964ab5ffdd5b05b4176817ecffe..87adaa4992c6d64e6b2c3630dad66aa7185324e0 100755 --- a/VIPSWeb/static/js/frontpageMap.js +++ b/VIPSWeb/static/js/frontpageMap.js @@ -85,12 +85,8 @@ function initFrontpageMap(lonLat, zoomLevel, mapAttribution) // ---------- Background layer is OpenStreetMap -------------- var backgroundLayer = new ol.layer.Tile({ source: new ol.source.OSM({ - attributions: [ - new ol.control.Attribution({ - html: mapAttribution - }) - ] - }) + attributions: [mapAttribution] + }) }); // Bing Maps example /*var backgroundLayer = new ol.layer.Tile({ diff --git a/VIPSWeb/static/js/weatherStationSelectorMap.js b/VIPSWeb/static/js/weatherStationSelectorMap.js index 6afbda4b865a5796108b98c2e98328e2be9d7350..e101aa14bebb5328dde2293ff9d774f941bb5ee1 100755 --- a/VIPSWeb/static/js/weatherStationSelectorMap.js +++ b/VIPSWeb/static/js/weatherStationSelectorMap.js @@ -43,11 +43,7 @@ function initMap(center, zoomLevel, attribution, organizationId, weatherStationF // Background layer is OpenStreetMap var backgroundLayer = new ol.layer.Tile({ source: new ol.source.OSM({ - attributions: [ - new ol.control.Attribution({ - html: attribution - }) - ] + attributions: [attribution] }) }); diff --git a/applefruitmoth/static/applefruitmoth/js/map.js b/applefruitmoth/static/applefruitmoth/js/map.js index 9602b07c683f426909b5f8512fdd006d8c25a399..623525317a407fe2b2141e3602f92fbf02026864 100755 --- a/applefruitmoth/static/applefruitmoth/js/map.js +++ b/applefruitmoth/static/applefruitmoth/js/map.js @@ -23,13 +23,9 @@ var initMap = function(container, mapAttribution) { // Creating background layer, Open Street Map is default var backgroundLayer = new ol.layer.Tile({ - source: new ol.source.OSM({ - attributions: [ - new ol.control.Attribution({ - html: mapAttribution - }) - ] - }) + source: new ol.source.OSM({ + attributions: [mapAttribution] + }) }); forecastLayer = new ol.layer.Vector({ diff --git a/observations/static/observations/js/observationList.js b/observations/static/observations/js/observationList.js index 987e4786f9b802e7c3818018d70ca1e7d9ee2cc1..429409c94105f7afb0eab0a316c320b025f09d4a 100644 --- a/observations/static/observations/js/observationList.js +++ b/observations/static/observations/js/observationList.js @@ -74,11 +74,7 @@ var initMap = function( // Background layer is OpenStreetMap var backgroundLayer = new ol.layer.Tile({ source: new ol.source.OSM({ - attributions: [ - new ol.control.Attribution({ - html: settings.MAP_ATTRIBUTION - }) - ] + attributions: [settings.MAP_ATTRIBUTION] }) }); diff --git a/observations/static/observations/js/observationViewMap.js b/observations/static/observations/js/observationViewMap.js index 7414e30b2514b12da73ed3c9b874a870f72b6feb..fe70805861d48c29b7c50ec2587710b4954c37d5 100755 --- a/observations/static/observations/js/observationViewMap.js +++ b/observations/static/observations/js/observationViewMap.js @@ -27,11 +27,7 @@ var initMap = function(geoJSON, poi, container, mapAttribution) { var backgroundLayer = new ol.layer.Tile({ source: new ol.source.OSM({ - attributions: [ - new ol.control.Attribution({ - html: mapAttribution - }) - ] + attributions: [mapAttribution] }) }); diff --git a/spatial/static/spatial/js/gridmap.js b/spatial/static/spatial/js/gridmap.js index ee181beb1831c2398443699ffefc5dcf0a06fce7..02be4484c29cf88285f5611fc33106dc8ef640d8 100644 --- a/spatial/static/spatial/js/gridmap.js +++ b/spatial/static/spatial/js/gridmap.js @@ -172,11 +172,7 @@ async function initGridMap(inputModelId, wmsURL, mapAttribution) { console.info("Init grid map " + inputModelId) let backgroundLayer = new ol.layer.Tile({ source: new ol.source.OSM({ - attributions: [ - new ol.control.Attribution({ - html: mapAttribution - }) - ] + attributions: [mapAttribution] }) }); diff --git a/spatial/static/spatial/js/spatialMap.js b/spatial/static/spatial/js/spatialMap.js index a57ba0b849f54be8f21423760a168610b18090d8..6a44aa4adc24bec6278a984f454fbcce1c5f7606 100644 --- a/spatial/static/spatial/js/spatialMap.js +++ b/spatial/static/spatial/js/spatialMap.js @@ -53,11 +53,7 @@ function initSpatialMap(lonLat, zoomLevel, mapAttribution, mapId) { // ---------- Background layer is OpenStreetMap -------------- var backgroundLayer = new ol.layer.Tile({ source: new ol.source.OSM({ - attributions: [ - new ol.control.Attribution({ - html: mapAttribution - }) - ] + attributions: [mapAttribution] }) });