hajkmap / Hajk

A modern, full-featured OpenLayers based map viewer and editor
MIT License
122 stars 46 forks source link

Ensure that WMS layer groups of type "Named Tree" are supported #202

Open jacobwod opened 5 years ago

jacobwod commented 5 years ago

This was originally a comment to issue #197

Proposal: ensure that WMS layer groups of type "Named Tree" are listed.

As of today, one must select "Single" or "Opaque Container" to make the layer group show up in Hajk's admin. This makes it impossible to use those other modes, especially "Named Tree", that lists not only the layer group but also the sub-layers inside the group. It works great in QGIS, and it would be really useful if we could get the same functionality in Hajk.

QGIS: Skärmavbild 2019-03-26 kl  15 17 22

GeoServer: Skärmavbild 2019-03-26 kl  15 18 14

Below is an example of two layer groups. topowebb-color is configured with mode "Opaque Container", topowebb-light has mode "Named Tree". A layer group configured in as "Named Tree" does not show up at all in Hajk's admin, even though it's there in the response from GetCapabilities: Skärmavbild 2019-03-26 kl  15 20 50

I'm not really sure why Hajk works like this today, as it seems to ignore any <Layer> nodes that have nested <Layer>s inside. That's the only difference I can see – other than that the nodes look identical.

Originally posted by @jacobwod in https://github.com/hajkmap/Hajk/issues/197#issuecomment-476671460

jacobwod commented 5 years ago

Proposal: ensure that WMS layer groups of type "Named Tree" are listed.

A temporary solution has been added as of be1d9feb, looks something like this: Skärmavbild 2019-04-18 kl  10 17 29