Hi,

Despite not being documented the *getLegendGraphic* request allows for a
*transparent* option (see source code
<https://github.com/geoserver/geoserver/blob/master/src/wms/src/main/java/org/geoserver/wms/GetLegendGraphicRequest.java#L42>)
allowing for
a transparent background legend (*image/png format*).

I was combining the *transparent* option with the *hideEmptyRules *option,
but in cases when there *are no features matching any rule* geoserver just
throws an error:

*java.lang.IllegalArgumentException: Width (2) and height (0) must be &gt;
0*

Removing the transparent option successfully returns a empty white
background image.

is this the desired behaviour?
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to