This is the style that was used for the decorations example:
https://github.com/geoserver/geoserver/blob/master/data/release/styles/popshade.sld
The title used for the legend is the title of the style itself, not the
title of any specific rule. (Rule titles are used for the individual
swatches.)
Legends might not work so well with CSS, the legend generation is pretty
tightly based on the structure of SLD. But I'm interested to hear about
how it goes if you try this out.
--
David Winslow
OpenGeo - http://opengeo.org/
On Wed, Jul 11, 2012 at 4:58 PM, Andrés González <
[email protected]> wrote:
> Hello All, hopefully someone has a quick and easy answer to this;
>
> I'm looking to add title to our legends, but unable to get it working
> properly. What is required for a legend to have a title like the
> following: http://docs.geoserver.org/latest/en/user/_images/decoration.png
>
> how is "USA Population" added to the legend here?
>
> according to this page, it should be in the <Title> tag within the
> <Rule> tag:
>
> http://docs.geoserver.org/latest/en/user/community/css/tutorial.html#setting-titles-for-the-legend
>
> but it won't work... tried adding several title tags just in case, and
> can't get any variation to display the title. any help will be
> appreciated, thanks in advance.
>
> --
> -andrés
> [845.365.8986]
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users