legend icons and transparency alpha for pixmap

Sean Gillies sgillies at FRII.COM
Wed Mar 2 14:35:42 PST 2005


you're welcome.

Sean

On Mar 2, 2005, at 3:33 PM, Ken Lord wrote:

> Great!
>
> Thanks Sean,
>
> -Ken
>
>
> On Wed, 2 Mar 2005 15:13:15 -0700, Sean Gillies <sgillies at frii.com>
> wrote:
>> Ken,
>>
>> It's fixed in CVS and will be working in the 4.4.2 release.
>>
>> cheers,
>> Sean
>>
>> On Mar 2, 2005, at 3:05 PM, Ken Lord wrote:
>>
>>> I'd like to second the motion on this bug ..
>>>
>>> In my case im using Mapserver 4.4.1 CGI, and a vector symbol overtop
>>> a
>>> solid colour to symbolize the fill of a polygon.
>>>
>>> The 'TRANSPARENCY ALPHA' setting in the layer, and 'TRANSPARENT ON'
>>> in
>>> my
>>> RGB jpeg outputformat fixed the appearance on the map, the map is
>>> fine,
>>> but the icons generated in the legend are broken.  The vector symbol
>>> lacks
>>> the transparency that it has on the map, and blocks out the solid
>>> fill
>>> colour underneath.
>>>
>>> The vector symbol is a simple diagonal line:
>>>
>>> SYMBOL
>>>  NAME 'hatch1'
>>>  TYPE VECTOR
>>>  TRANSPARENT 0
>>>  POINTS
>>>   0 1
>>>   1 0
>>>  END
>>> END
>>>
>>> The typical class in the layer with the problem legend icons looks
>>> like
>>> this:
>>>
>>>   CLASS
>>>       EXPRESSION ....
>>>       NAME "...."
>>>       STYLE
>>>      COLOR 250 250 130
>>>       END
>>>       STYLE
>>>        SYMBOL 'hatch1'
>>>       COLOR 153 209 155
>>>        SIZE 3
>>>       END
>>>       STYLE
>>>       OUTLINECOLOR 0 0 0
>>>       SYMBOL "circle"
>>>       SIZE 1
>>>       END
>>>   END
>>>
>>> In this case, the legend icon would appear as white with the '153 209
>>> 155'
>>> diagonal lines, outlined in black. If correct it would appear as '250
>>> 250
>>> 130' with the '153 209 155' diagonal lines, outlined in black.
>>>



More information about the MapServer-users mailing list