Can mapserver draw only the legend?

Sears, Jeremy Jeremy.Sears at CCRS.NRCAN.GC.CA
Thu Apr 6 16:34:13 EDT 2006


Hi All,
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



 



More information about the mapserver-users mailing list