legend icons and transparency alpha for pixmap
Ken Lord
kenlord at GMAIL.COM
Wed Mar 2 14:05:38 PST 2005
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.
Thanks
Ken Lord
Vancouver BC
More information about the MapServer-users
mailing list