GetLegendGraphic does not return title SLD Rule Title when only one rule is specified.

Description

When attempting to fetch a legend that contains only a single rule set, the text from that legend is dropped from the output, leaving only the graphic element.

Example from GeoServer's default Line style SLD:

Environment

None

Activity

Show:
Andrea Aime
November 25, 2019, 5:32 PM

Works as designed and documented, see the "forceLabels" option here: https://docs.geoserver.org/stable/en/user/services/wms/get_legend_graphic/index.html

Please ask questions on the user list before opening tickets.

Won't Fix

Assignee

Unassigned

Reporter

Chad Arsenault

Triage

None

Fix versions

None

Affects versions

Components

Priority

Low
Configure