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

Create version of LayerControlGroup for mutually exclusive layers. #800

Open
jamesscottbrown opened this issue Jan 21, 2025 · 0 comments
Open

Comments

@jamesscottbrown
Copy link
Collaborator

It would be useful for the LayerControlGroup to accept a Boolean mutuallyExcluive prop.

If true, then the controls for each layer would act like radio buttons, rather than checkboxes: enabling a layer would disable any layer that was previously selected.

The functionality of only allwoing a ingle layer from a group to be selected is used in several of our maps, particuarly for layers such as choropleths that cover the whole area, so that only one would be visible at once.

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

1 participant