Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
guenterw opened this issue Apr 24, 2024 · 11 comments · Fixed by #4618
Closed
1 task done

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

guenterw opened this issue Apr 24, 2024 · 11 comments · Fixed by #4618
Assignees
Labels
Milestone

Comments

@guenterw
Copy link

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 :

  • Lizmap Web Client : 3.7.6
  • Lizmap plugin : 4.3.7
  • QGIS Desktop : 3.34.6
  • QGIS Server : 3.34.6
  • Py-QGIS-Server : not used
  • QGIS Server plugin atlasprint : 3.3.2
  • QGIS Server plugin lizmap_server : 2.8.6
  • QGIS Server plugin wfsOutputExtension : 1.8.0
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

  • 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

Chrome

Browsers version

Chrome 124.0.6367.79

Relevant log output

No response

@guenterw guenterw added the bug label Apr 24, 2024
@guenterw
Copy link
Author

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 nboisteault self-assigned this Jun 3, 2024
@nboisteault nboisteault added this to the 3.7.9 milestone Jun 3, 2024
@nboisteault
Copy link
Member

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

@guenterw
Copy link
Author

guenterw commented Jun 3, 2024

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 #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
Copy link
Author

guenterw commented Jul 4, 2024

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
Copy link
Author

#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
Copy link

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
Copy link
Author

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
Copy link
Collaborator

rldhont commented Jul 16, 2024

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

@guenterw
Copy link
Author

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
Copy link
Collaborator

rldhont commented Jul 16, 2024

@guenterw here is the fix for groupAsLayer #4622 checked in theme.

@guenterw
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants