Generating Legend Image with Python Mapscript

Richard Orth - osmoGIS Incorporated rco at OSMOGIS.COM
Tue Sep 27 13:30:46 EDT 2005


Have you tried adding a label object to the legend object in the map 
file? You can control fonts and some placement issues in there.

Richard C Orth


William Hudspeth wrote:

>Hello,
>
>I am trying to insert a legend image into a dynamically generated PDF
>file. Using the mapObj.drawLegend() method, I can easily accomplish
>this, but can't do much about the appearance of the legend. I would like
>to have more control over the font properties, etc., and have tried
>using the mapObj.legend.label settings, but haven't figured out how to
>export out an independent image. I would appreciate any suggestions on
>how I might generate a legend image over which I have some more control
>with regard to fonts. 
>
>Thanks, Bill
>
>  
>



More information about the mapserver-users mailing list