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

Strange behavior with different styles and themes #1033

Open
1 task done
silviafranceschi opened this issue Feb 4, 2025 · 2 comments
Open
1 task done

Strange behavior with different styles and themes #1033

silviafranceschi opened this issue Feb 4, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@silviafranceschi
Copy link

silviafranceschi commented Feb 4, 2025

Checklist

  • I've searched through the existing issues and this bug has never been reported before

Subject of the issue

I have a project with different layers stored in a Postgres DB but for two of them (Polygon-multipolygon geometries) I set different styles. These styles differ in Symbology and in Rendering. I set for one of the style (default) the Rendering Scale Visibility to min 25000. In the other two styles this rendering restriction is not present.

In QGIS all seems to work fine, I can select the theme and then all the configuration of the two layers is loaded. When I upload the project in the suite alternatively, Layer1 and Layer2 will be displayed following the rendering scale visibility, even if I selected the style without the rendering restriction (exactly the same set for the default style even if an other style is active in the selected theme).
I mean that, I select the Zone Theme and the Layer1 is visible with the correct colors but with the rendering scale visibility activated. Same for the Layer2 in Art Theme. But alternatively one of the two works fine and the other not... I think the last one I save will work and the other not, but I can not understand the real behavior...

Steps to reproduce

Layer1 styles ("wiesen" → multipolygon):

  • "default ": only stroke of the polygons and set rendering scale visibility min to 1:25000
  • "zone": set both stroke and fill of the polygons and NOT set the rendering scale visibility (left unchecked)

Image

Image

Layer2 styles ("bepfl" → multipolygon):

  • "default": only stroke of the polygons and set rendering scale visibility min to 1:25000
  • "art": set both stroke and fill of the polygons and NOT set the rendering scale visibility (left unchecked)

Image

Image

To easier manage these styles and the general configuration of the entire map, I set three themes selecting alternatively one style for each one of the two layers.

• Default Theme: Layer1 (default) + Layer2 (default) style

QGIS: at this scale only "genoessenshaften" are visualized

Image

under 1:25000 all the two layers are visualized

Image

• Zone Theme: Layer1 (zone) + Layer2 (default) style

Image

Image

• Art Theme: Layer1 (default) + Layer2 (art) style

Image

Image

Environment

  • g3w-admin: 3.9
  • g3w-client: version
  • browser: Chrome
  • operating system: windows 11
  • qgis: 3.34.15-Prizren

Image

Link to your project

No response

Additional info

No response

@silviafranceschi silviafranceschi added the bug Something isn't working label Feb 4, 2025
@Raruto
Copy link
Contributor

Raruto commented Feb 5, 2025

@silviafranceschi Thanks for the effort you put into describing the problem in detail.

Please also add some self-explanatory images, so anyone else can easily figure out the problem (and eventually join the conversation).

Whether applicable, a public example project (or URL) to replicate never hurts. 😄


As per:

  • g3w-admin: version
  • g3w-client: version
  • browser: Chrome
  • operating system: windows11
  • qgis: 3.34.15-Prizren

You can find additional information in here:

g3w-admin (backend)

Image

Image

g3w-client (frontend)

Image

👋 Raruto

@silviafranceschi
Copy link
Author

I will try to show you the example.

Layer1: multipolygon
Layer2: multipolygon

wiesen
Image

bepfl
Image

Styles:
Layer1:
default style: only stroke of the polygons and set rendering scale visibility min to 1:25000
zone style: set both stroke and fill of the polygons and NOT set the rendering scale visibility (left unchecked)

Image

Layer2:
default style: only stroke of the polygons and set rendering scale visibility min to 1:25000
art style: set both stroke and fill of the polygons and NOT set the rendering scale visibility (left unchecked)
To easier manage these styles and the general configuration of the entire map, I set three themes selecting alternatively one style for each one of the two layers.

Image

Example:

Default Theme: Layer1 default style and Layer2 default style

QGIS: at this scale only genoessenshaften are visualized
Image

under 1:25000 all the two layers are visualized

Image

Zone Theme: Layer1 zone style and Layer2 default style

QGIS
Image

Suite
Image

Art Theme: Layer1 default style and Layer2 art style

QGIS
Image

Suite
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants