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
249 stars 141 forks source link

Layer group not automatically active despite corresponding setting (group as Layer) #4382

Closed guenterw closed 2 days ago

guenterw commented 2 months ago

What is the bug? (in English)

Layergroups that are grouped in a layer (group as layer) are not automatically displayed as active, even if this is defined as such. This affects version 3.7.6 and 3.8.0 Alpha.2 no QGIS themes were used image

image (https://cx21-7.webgis.biz) In version 3.6 (https://cx21-6.webgis.biz/) it works (it is always the same project, only the version has been adjusted in the plugin)

Steps to reproduce the issue

see What is the bug?

Versions, safeguards, check summary etc

Versions :

List of safeguards :
* Mode : normal * Allow parent folder : yes * Number of parent : 2 folder(s) * Prevent other drive : no * Prevent PG service : yes * Prevent PG Auth DB : yes * Force PG user&pass : yes * Prevent ECW : yes

Check Lizmap plugin

Operating system

ubuntu 22.04

Browsers

Chrome

Browsers version

Chrome 124.0.6367.79

Relevant log output

No response

guenterw commented 2 months ago

The error also exists in version 3.7.7-pre.7428 from 13/05/2024, regardless of whether the QGIS themes are used or not. In version 3.6.12, the error only exists when using the QGIS themes.

image

image

see also https://reute3-7.webgis.biz/

nboisteault commented 1 month ago

If you check Toggled on at least one of the layers in the group, it should work.

guenterw commented 1 month ago

You mean a layer must be activated? image

Unfortunately, this does not work. It does not work either with or without QGIS themes. image

See "ALKIS aus DB mit Lizmap 3.7.x" in https://cx21-7.webgis.biz

There is also a problem with the legend for grouped layers, see https://github.com/3liz/lizmap-web-client/issues/4431. Should I leave issue 4431 open or close it? The example projects given there are based on the three current versions.

PS: I will send Etienne another ALKIS data project by e-mail in the next few days

guenterw commented 1 week ago

It's a shame that it's probably a bigger problem.

When switching to 3.7, I now have to dissolve all grouped layergroups and thus have almost 300 layers in the project.

guenterw commented 2 days ago

4593 was to be understood as a hint that the error is also present in 3.8 RC 2.

The consideration of this error is very time-consuming for me. In order to be able to use an extensive grouped layergroup, I now provide this myself as a WMS service. I have to change the many "small" grouped layergroups accordingly. And I don't know if it's worth the work or if I should wait for the bug to be fixed. Would a financial contribution to fix the bug help?

meyerlor commented 2 days ago

I struggle with the same consideration - this is the major point which keeps me from updating to 3.7 or 3.8. I would happily chip in some money as well, if this helps a speedy resolve of the issue

guenterw commented 1 day ago

Thank you very much for the fast processing.

Without using the QGIS themes, the activated display of the grouped layergroup now works. Unfortunately not yet with the use of the QGIS themes.

I have tested it in the current 3.7.10-pre.7591 and in 3.8.0-rc.3. https://cx21-7.webgis.biz/index.php/view/map?repository=alkis&project=OpenData_ALKIS_3_34#7.626925,48.109454,7.734527,48.146055 https://cx21-8.webgis.biz/index.php/view/map?repository=alkis&project=Test_Herbolzheim8 (I can also send you the example project)

For me personally, the consistent use of the QGIS themes is the main reason to switch to the newer versions 3.7 / 3.8. At the moment, unfortunately, there is still no improvement for me.

How should I proceed, open a new issue or reopen this one (if possible?)

rldhont commented 1 day ago

Hi @guenterw, you describe an other issue. I have fix the first describe at the top.

guenterw commented 1 day ago

ok, is there anything else i can do? Perhaps a reference to my comment above at #4232

Or can you foresee when the problem will also be solved for the QGIS themes (as described, this is currently a lot of work for me) when I update projects.

rldhont commented 1 day ago

@guenterw here is the fix for groupAsLayer https://github.com/3liz/lizmap-web-client/pull/4622 checked in theme.

guenterw commented 1 day ago

@rldhont Thank you very much! It works in the current 3.7.10pre and also in 3.8. RC 3. For me it was a bit annoying that I had to deactivate the grouped layergroups in quite a few projects, but overall I am happy that with version 3.7.10 we will have a Lizmap client that fully supports the QGIS themes. Many thanks for your work.