make layer from DWD configurable

This commit is contained in:
Matthias Wirth
2022-03-18 22:31:15 +01:00
parent cd40292ccf
commit ecd398f90f
3 changed files with 5 additions and 1 deletions

View File

@@ -348,7 +348,7 @@ function createBaseLayers() {
let dwd = new ol.layer.Tile({
source: new ol.source.TileWMS({
url: 'https://maps.dwd.de/geoserver/wms',
params: {LAYERS: 'dwd:RX-Produkt', validtime: (new Date()).getTime()},
params: {LAYERS: dwdLayers, validtime: (new Date()).getTime()},
projection: 'EPSG:3857',
attributions: 'Deutscher Wetterdienst (DWD)',
attributionsCollapsible: false,