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

Ragnar Østerø ragnar at munin.fo
Wed Jul 2 11:21:11 EDT 2008


That fixed it, thanks for the help :-)

 

________________________________

From: Joseph Harwood [mailto:joe.harwood at gmail.com] 
Sent: 2. juli 2008 15.42
To: Ragnar Østerø
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] How do I create an embedded legend with all layers and layer name?

 

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/beaec0e4/attachment-0001.html


More information about the mapserver-users mailing list