ol-ext icon indicating copy to clipboard operation
ol-ext copied to clipboard

Layer Switcher - Nested Group Support

Open davidtaddei opened this issue 11 months ago • 1 comments

Description The layer switcher only supports a single tier of nested groups. If a group is within a group then it's layers are duplicated and presented twice in the control.

To Reproduce Create a layer group (parent), add a nested group (child), add any layer to the child. Observe the child group being displayed beneath the parent and as a top tier level. Open the child group and observe that both entries are opened.

Expected Layer switcher should handle multiple nested groups

image

davidtaddei avatar Jan 07 '25 14:01 davidtaddei

That's not the case. Maybe you have add it twice... See: https://codepen.io/viglino/pen/dPbJwyJ

Viglino avatar Jan 07 '25 16:01 Viglino