diff --git a/html/config.js b/html/config.js index 6ecf921..403d42a 100644 --- a/html/config.js +++ b/html/config.js @@ -75,6 +75,9 @@ // default these overlays to on for visitors which haven't disabled them in the browser in a previous session // defaultOverlays = ['radolan', 'nexrad']; +// change which product from DWD to use +// dwdLayers = 'dwd:RX-Produkt'; + // Default map dim state, true or false. // MapDim = true; // mapDimPercentage = 0.45; diff --git a/html/defaults.js b/html/defaults.js index 2022567..786ccc1 100644 --- a/html/defaults.js +++ b/html/defaults.js @@ -58,6 +58,7 @@ let actual_range_outline_dash = null; // null - solid line, [5, 5] - dashed line // which map is displayed to new visitors let MapType_tar1090 = "osm_adsbx"; let defaultOverlays = []; +let dwdLayers = 'dwd:RX-Produkt'; // Default map dim state let MapDim = true; diff --git a/html/layers.js b/html/layers.js index 18d23ef..6ed5ee4 100644 --- a/html/layers.js +++ b/html/layers.js @@ -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,