The SLD schema allows Rule elements to contain a LegendGraphic element but they are ignored when GeoServer converts an SLD style to YSLD. This is not currently implemented according to the YSLD Reference: http://docs.geoserver.org/latest/en/user/styling/ysld/reference/rules.html SLD Example: <sld:Rule> ... <sld:LegendGraphic> <sld:Graphic> <sld:ExternalGraphic> <sld:OnlineResource xlink:type="simple" xlink:href="" /> <sld:Format>image/png</sld:Format> </sld:ExternalGraphic> </sld:Graphic> </sld:LegendGraphic> ... </sld:Rule> |