zskarte / zskarte-client

Zivilschutz-Karte allows to draw situation maps for disaster management
https://www.zskarte.ch/
MIT License
13 stars 8 forks source link

feat(geoAdmin): allow wms layers, add attribution, sanitize, hide layer redesign #411

Open swerder opened 3 months ago

swerder commented 3 months ago

The geoAdmin informations have wmts, wms and aggregate layer types. This change allow to use all of them.

It also fixes issues with base layer change if an additional layer is added.

To prevent unneeded tile downloads the layers are set to visible = false if "hide" is clicked or opacity = 0

It also add the layer specific attribution defined by the api. The make sure this informations (and also the layer info popup) are sanitized.

The attribution for the layers are not visible with this change. But adding the OpenLayers element for that is part of: https://github.com/zskarte/zskarte-client/pull/404