[Geoserver-users] GetLegendGraphic has no title when there is only 1 Rule

it probably does need to be configurable, because I imagine in some circumstances you would want to get the graphic with no label. I would think one of the 2 following is appropriate:

  1. if the title is null, empty string, or “title” then dont draw it. otherwise always draw it (i.e. configuration happens in the SLD)
  2. add some kind of non-standard url parameter, i.e. title=true

the nice part of the former is that it doesnt involve going beyond the WMS/SLD standard, since you said that label-drawing is an undefined behavior in the spec. the nice part of the latter is that you can get either without any extra SLD nuisance.

thanks,
mike