[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 07:42:03 PDT 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.htm>
More information about the MapServer-users
mailing list