How to create a legend icon that not clipped using mapscript

Tamas Szekeres szekeres.tamas at FREEMAIL.HU
Tue Sep 27 05:39:53 EDT 2005


Hi list,

Is it possible to create a legend icon that not falls out of the image
area using mapscript?
With classObj.createLegend it is not possible to give separate image size
and keysize (and starting point) so some of the images (eg. thick lines)
are clipped.
For using classObj.drawLegend the imageObj must be created from scratch
and the background color cannot be set, so the legends appear with black
background. Setting up imageObj as transparent could help for some images
but the others are drawn as a black rectangle.

Could anyone give a solution?


Thanks,

Tamas Szekeres



More information about the mapserver-users mailing list