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

🔙 from #709 - Add support for LAYERFONTSIZE, ITEMFONTSIZE and SHOWFEATURECOUNT parameters (rif: GetLegendGraphic) #710

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Feb 4, 2025

Backport 6c7ae1d from #709 to v3.11.x.

• LAYERFONTSIZE

This parameter specifies the font size for rendering layer title in point.

wms_getlegendgraphic_layerfontsize

http://localhost/qgisserver?
SERVICE=WMS
&REQUEST=GetLegendGraphic
&LAYERS=airports,places
&BBOX=43.20,-2.93,49.35,8.32
&CRS=EPSG:4326
&TRANSPARENT=TRUE
&LAYERFONTSIZE=20

Rif: https://docs.qgis.org/3.34/en/docs/server_manual/services/wms.html#wms-getlegendgraphic-layerfontsize

• ITEMFONTSIZE

This parameter specifies the font size for rendering layer title in point.

wms_getlegendgraphic_itemfontsize

http://localhost/qgisserver?
SERVICE=WMS
&REQUEST=GetLegendGraphic
&LAYERS=airports,places
&BBOX=43.20,-2.93,49.35,8.32
&CRS=EPSG:4326
&TRANSPARENT=TRUE
&ITEMFONTSIZE=20

Rif: https://docs.qgis.org/3.34/en/docs/server_manual/services/wms.html#wms-getlegendgraphic-itemfontsize

• SHOWFEATURECOUNT

True/False: wether to activate feature count in the legend.

getfeaturecount_legend

…` parameters (rif: `GetLegendGraphic`) (#709)

* 🐛 Get image only if legend tab is active

* 🐛 get legend parameter url boolen.
Add two param:
 - LAYERFONTSIZE,
 - ITEMFONTSIZE

* ✨ add showfeaturecount SHOWFEATURECOUNT

* Clean code space

(cherry picked from commit 6c7ae1d)
@github-actions github-actions bot added the feature New feature or request label Feb 4, 2025
@volterra79 volterra79 requested a review from Raruto February 4, 2025 15:53
@volterra79 volterra79 self-assigned this Feb 4, 2025
@volterra79 volterra79 added this to the v3.11 milestone Feb 4, 2025
@volterra79 volterra79 merged commit e149eb1 into v3.11.x Feb 4, 2025
@volterra79 volterra79 deleted the backport-709-to-v3.11.x branch February 4, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant