[Chameleon] Draw only legend?

Bart van den Eijnden (OSGIS) bartvde at xs4all.nl
Fri Apr 7 09:32:34 EDT 2006


Check out the code in this bug report:

http://bugzilla.maptools.org/show_bug.cgi?id=1402

that should get you started.

Best regards,
Bart

Sears, Jeremy wrote:

> 
>Hi List, 
>I posted this question to the Mapserver list yesterday, inretrospect I think
>it may be more suited to this list. Here goes...
>
>
>Im wondering if its possible to have mapserver draw only a legend, not its
>associated map...
>Im looking at the mapscript documentation on maptools.org regarding the
>LegendObj Class, it says:
>
>"Instances of legendObj are always are always embedded inside the mapObj."
>
>So Im starting with code like:
>
>// draw ledgend ...
>$legend = ms_newMapObj($mapfileloc);
>..
>
>And Id like to get to the point where I write:
>
>$legend_image = $legend->draw();
>
>
>
>But Im not sure how to specify to only draw a legend.. Is it possible?
>
>
>Thanks
>Jeremy
>
>_______________________________________________
>Chameleon mailing list
>Chameleon at lists.maptools.org
>http://lists.maptools.org/mailman/listinfo/chameleon
>
>
>  
>


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl



More information about the Chameleon mailing list