How to create a legend icon that not clipped using mapscript
Lowell Filak
lfilak at MEDINACO.ORG
Tue Sep 27 05:14:06 PDT 2005
The following message was sent by Tamas Szekeres
<szekeres.tamas at FREEMAIL.HU> on Tue, 27 Sep 2005 04:39:53 -0500.
> 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?
Tamas,
There is much more flexibility if you use html templates for the legend
which can be used in mapscript via map->processLegendTemplate.
Lowell
More information about the MapServer-users
mailing list