[mapserver-users] How do I create an embedded legend with all layers and layer name?

Joseph Harwood joe.harwood at gmail.com
Wed Jul 2 10:42:03 EDT 2008


Each Layer needs to have a Class and each class that you want to appear in
the legend needs a NAME field.

LAYER
   NAME "Streets"
 CLASS
     NAME "Major Roads"
     STYLE.... etc..






On 7/2/08, Ragnar Østerø <ragnar at munin.fo> wrote:
>
>  I have created a map view with mapscript and I want an embedded legend
> with layer names.
>
>
>
> And this only gives me an empty image….
>
> $imageLegend = $objMap->drawLegend();
>
> $imageLegend_url = $imageLegend->saveWebImage();
>
>
>
> Do I have to set anything in the Layers or the map?
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080702/9c3c1873/attachment.html


More information about the mapserver-users mailing list