lizmap-web-client
lizmap-web-client copied to clipboard
Layer toggeling behaviour at LWC start
What is the bug? (in English)
If I understand it correctly, with LWC 3.7 the behaviour of the layer panel should be the same as in QGIS. This is really great and works fine - but "initiating" the layers which should be activated at the start of LWC does somehow not really follow an understandable logic (at least i can not comprehend it). Maybe it is intended to work this way, hopefully it is possible to clarify a little bit:
Steps to reproduce the issue
- When not working with QGIS map themes, setting a layer in the lizmap plugin as "toggled" will also toggle the group the layer is part of when opening LWC - although the group is not toggled in the lizmap plugin (so all layers of that group need to be "untoggled" in LM plugin, but then the user has to activate all layers manually in LWC)
- To circumvent this behaviour, I tried using QGIS map themes - toggle all layers in a group but do not toggle the group itself:
This results in:
which is again not the desired result.
So how can it be achieved that a user can "fast switch on" a group like shown here:
Versions, safeguards, check summary etc
QGIS Desktop 3.28 LWC 3.7.2
Check Lizmap plugin
- [X] I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.
Operating system
Ubuntu 22.04
Browsers
Firefox, Chrome, Safari, Microsoft Edge
Browsers version
Firefox 115
Relevant log output
No response