lizmap-javascript-scripts
lizmap-javascript-scripts copied to clipboard
Muttualy exclusive group and expand-collapse-legend-when-layer-toggled
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 forlayerA
- I check
layerB
in the same grouplayerA
is unchecked > Ok legend appear forlayerB
but forlayerA
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).