I have a layer with a color attribute and I write an SLD with a fill color like this:

        <sld:CssParameter name="fill">

Each geometry will have its own fill color, based on the value of its color attribute.

However, the legend does not reflect that.

Does GeoServer have a way to generate a good legend for this kind of SLD body, where we have attribute-based styles?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.