WMS GetLegendGraphic margins issues

Description

I would like to propose a couple of new options for the GetLegendGraphic WMS request:

  • labelMargin, to set the margin between icons and the related labels; I would use a default of 2/3 pixels so that labels have a small distance from the icons; currently for icons that are filling the given space (usually external images) there is no space between the icon and the label

  • absoluteMargins (true|false): this is for raster legends; currently a proportional margin is applied, so that space between columns depends (for example) from labels text length; when absoluteMargins is true, I would use a fixed space margin (configurable with the already existing dx option); I would also switch to absolute margins by default (I don't really understand the usage of proportional space between columns)

Environment

None

Status

Assignee

Mauro Bartolomeoli

Reporter

Mauro Bartolomeoli

Triage

None

Fix versions

Affects versions

Priority

Medium
Configure