[OpenLayers-Users] how to make the legend in openlayers?

David Fawcett david.fawcett at gmail.com
Mon Apr 13 16:42:48 EDT 2009


If you are already using MapServer, I can recommend making a
mode=legend call specifying the active layers to MapServer to return a
legend graphic for your map.

David.

On Mon, Apr 13, 2009 at 2:34 PM, Alexander Petkov <greenkov at gmail.com> wrote:
> On Mon, Apr 13, 2009 at 1:12 PM, MeLv1n wAuRaN <melvinnesta at gmail.com> wrote:
>> Static as in a raster image? so i have to create an image of my legend and
>> then just load it into openlayers using the "div"? now how can i make a div
>> and populate it with my legend entries?
>
> Why would you not want to use mapserver to generate your legend entry
> for a layer? Basically, it is a standard OGC GetLegendGraphic request,
> or just use mapserver in legend mode. Then, if you change your map
> styling, the legend graphics will be updated automatically.
>
>
>
> Alex
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list