Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layer Switcher - Nested Group Support #1120

Open
davidtaddei opened this issue Jan 7, 2025 · 1 comment
Open

Layer Switcher - Nested Group Support #1120

davidtaddei opened this issue Jan 7, 2025 · 1 comment

Comments

@davidtaddei
Copy link

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

@Viglino
Copy link
Owner

Viglino commented Jan 7, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants