[OpenLayers-Users] Display legend
Jacolin Yves
yjacolin at free.fr
Wed Oct 15 10:57:31 EDT 2008
Le Wednesday 15 October 2008 16:53:48 Sophie GRAS, vous avez écrit :
> Hi everyone
>
> I have a dumb question but i can't find the answer...
> I have a mapfile with several layers and I use openlayers to display them.
> In each layer I have some classes (representing percentage of the
> population) and I'd like to know how to display the legend of these classes
> using openlayers. If i embed the legend in the mapfile, it works well but
> the legend is displayed on each tile. Is there a way to act differently?
>
> Thanks
Hi Sophie,
Just a tips : you can create you own javascript class to retrieve the
getLegend request (SLD service), or better using the getStyle request (again
SLD service). But you will need to build the icon in vector :/
But maybe someone worked on this nice feature ;)
Y.
--
Yves Jacolin
---
http://softlibre.gloobe.org
More information about the Users
mailing list