lizmap-javascript-scripts icon indicating copy to clipboard operation
lizmap-javascript-scripts copied to clipboard

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

Open CorentinLemaitre opened this issue 3 years ago • 0 comments

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).

CorentinLemaitre avatar Apr 30 '21 13:04 CorentinLemaitre