FL550 / dwd_weather

Deutscher Wetterdienst integration for Home-Assistant
MIT License
197 stars 13 forks source link

map kreise and gemeinden are in the forground instead of the background #145

Closed tohcnam closed 2 months ago

tohcnam commented 2 months ago

Version of home_assistant

2024.9.1

Version of the custom_component

2.1.7

Describe the bug

Choosing a weather map I can define what should be the background for the map. 'bundeslaneder' and 'laender' is working as expected, but 'gemeinden' and 'kreise' are showing the map in the forground instaed of the background. With this, I can not see the actual map. See scrennshot of the background image 'kreise'. image

FL550 commented 2 months ago

Thanks for reporting! I'll fix this as soon as possible.

ahessling commented 2 months ago

@FL550 The order of the "layers" field in the request to the DWD server is the key to the solution. For example

https://maps.dwd.de/geoserver/dwd/wms?service=WMS&version=1.1.0&request=GetMap&layers=dwd:Warngebiete_Kreise,dwd:Niederschlagsradar,dwd:NCEW_EU&bbox=4.4,46.4,16.1,55.6&width=520&height=580&srs=EPSG:4326&styles=&format=image/png

puts the "Kreise" layer first and on top of it the precipication layer: grafik

Schöne Grüße aus Wesel! André

FL550 commented 2 months ago

@ahessling Thanks for troubleshooting! I know where this issue arises from. Half a year ago, I was notified, that the order of layers was wrong for the satellite image: https://github.com/FL550/simple_dwd_weatherforecast/issues/21 . My error was, to implement this for all layers, not realizing there were layers with different transparencies. I'll implement a version, which checks the correct order for each combination and release it probably today, latest tomorrow.

Viele Grüße zurück!

FL550 commented 2 months ago

This now fixed with the latest version. Thanks for reporting this!