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

Muttualy exclusive group and expand-collapse-legend-when-layer-toggled #41

Open
CorentinLemaitre opened this issue Apr 30, 2021 · 0 comments

Comments

@CorentinLemaitre
Copy link

Hello,

I have used the js file expand-collapse-legend-when-layer-toggled.js to show the legend on click. It is really nice 👍

I have used it in a project where my groups are set as mutually exclusive group wich let only one layer active for each group.

  • I check layerA in the group > Ok the legend appear for layerA
  • I check layerB in the same group layerA is unchecked > Ok legend appear for layerB but for layerA the legend stay expanded as no click has been detected.

What i would expect is to have a legend expanded or not based on the status of the layer. It would permit to have expanded legend for all the layer toggled in the beginning (which could be great in my point of view).

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