chore: add link to DWD attribution and move attribution to top

This commit is contained in:
Luca 2025-06-05 01:32:53 +02:00
parent bd861c69cf
commit cc38bc541a
2 changed files with 12 additions and 1 deletions

View File

@ -20,7 +20,9 @@ const dwd = new TileLayer({
extent, extent,
opacity: 0.5, opacity: 0.5,
source: new TileWMS({ source: new TileWMS({
attributions: ["Deutscher Wetterdienst"], attributions: [
'<a href="https://www.dwd.de/copyright">Deutscher Wetterdienst</a>',
],
url: "https://maps.dwd.de/geoserver/ows?version=1.3.0", url: "https://maps.dwd.de/geoserver/ows?version=1.3.0",
params: { params: {
LAYERS: "dwd:Niederschlagsradar", LAYERS: "dwd:Niederschlagsradar",

View File

@ -71,6 +71,15 @@ body {
width: 100%; width: 100%;
} }
.ol-attribution {
bottom: unset !important;
top: 0.5em;
}
.ol-attribution.ol-uncollapsible {
top: 0;
}
@media only screen and (min-width: 800px) { @media only screen and (min-width: 800px) {
#time { #time {
margin-bottom: 0; margin-bottom: 0;