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

QGIS Server GetLegendGraphics forcing RULELABEL=TRUE where not needed (set) #36140

Closed
uprel opened this issue May 2, 2020 · 0 comments · Fixed by #36153
Closed

QGIS Server GetLegendGraphics forcing RULELABEL=TRUE where not needed (set) #36140

uprel opened this issue May 2, 2020 · 0 comments · Fixed by #36153
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server

Comments

@uprel
Copy link
Contributor

uprel commented May 2, 2020

Describe the bug
PR #32383 introduced displaying legend labels for all cases even if RULELABEL parameter was not set.
For single symbols that means duplicated legend label with layer title. If you know your layer style type then you can call its legend with RULELABEL on/off and that's fine. Problem are web clients which from GetProjectSettings do not have information about that and do not know how to adjust RULELABEL parameter.
That was not necessary in 3.4 and can be seen on pictures below (examples from Extended QWC):
legenda 3 4 legenda 3 10

QGIS and OS versions

QGIS Server 3.10.5 and current master

Additional context

Working on PR myself, will commit it shortly.

@uprel uprel added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 2, 2020
@uprel uprel changed the title [SERVER] GetLegendGraphics forcing RULELABEL=TRUE where not needed (set) QGIS Server GetLegendGraphics forcing RULELABEL=TRUE where not needed (set) May 2, 2020
@gioman gioman added the Server Related to QGIS server label May 4, 2020
uprel added a commit to level2-gis/QGIS that referenced this issue May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants