[OpenLayers-Users] WFS - legend

Florent Gravin florent.gravin at bluecham.net
Tue Apr 7 02:48:53 EDT 2009


htks for reply

GetLegendGraphic gives the legend of a WMS, the one specified in the SLD of 
the WMS layer, or the one in the SLD given in the url paremeter...
I would like a legend for WFS, which have no SLD, but only style and 
styleMap definition

----- Original Message ----- 
From: "Alexander Petkov" <greenkov at gmail.com>
To: "floflo" <florent.gravin at bluecham.net>
Cc: <users at openlayers.org>
Sent: Tuesday, April 07, 2009 12:12 PM
Subject: Re: [OpenLayers-Users] WFS - legend


> On 4/6/09, floflo <florent.gravin at bluecham.net> wrote:
>>
>>  Hi,
>>
>>  can we get a legend from the symbol we use for our features ?
>>  for exemple, proportionnal symbol, StyleMap(defaut, select) with a 
>> varying radius ..
>>  can we get the image of the symbol in itself (triangle or circle with 
>> the right color and size).. for exemple ?
>>
>>  thks
>
> Assuming that you are using any WMS-compliant backend (for example,
> mapserver or geoserver), then yes.
>
> More specifically, "SERVICE=WMS&REQUEST=GetLegendGraphic" with the
> rest of the required parameters is what you are looking for.
>
> Alex 




More information about the Users mailing list