3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
254 stars 143 forks source link

[Bug]: Mutually Exclusive Group not correctly loaded in LWC 3.7 #4090

Open bsaglio2001 opened 7 months ago

bsaglio2001 commented 7 months ago

What is the bug?

In one of my QGS project, one group containing several layers (more precisely several "groups as a layer") was configured as a "Mutually Exclusive Group". In the lizmap plugin, I set visible (checked) only one layer inside this group to be loaded visible.

Here is the configuration in QGIS.

image

Only one layer inside this group is checked on loading image

Here is the result in LWC 3.6. Everything works fine. image

Here is the result in LWC 3.7. All layers inside the "Mutually Exclusive Group" are checked after loading. Curiously, after I uncheck all, then the behaviour of this group is correct. image

Steps to reproduce the issue

  1. Load a project with a Mutually Exclusive Group into LWC 3.7
  2. Control the result

Versions, safeguards, check summary etc

Versions :

List of safeguards :
* Mode : safe * Allow parent folder : no * Prevent other drive : yes * Prevent PG service : yes * Prevent PG Auth DB : yes * Force PG user&pass : yes * Prevent ECW : yes

Check Lizmap plugin

Operating system

Windows 10 Business

Browsers

Firefox

Browsers version

Firefox 121.0.1

Relevant log output

No response

nboisteault commented 6 months ago

You need to check layers as visible only in the group you want to be visible at startup. I note that it has to be improved.