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 <[email protected]> wrote: > On Mon, Apr 13, 2009 at 1:12 PM, MeLv1n wAuRaN <[email protected]> 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 > [email protected] > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
