[mapserver-users] label and opacity

Marc-André Trottier marcandre_trottier at hotmail.com
Thu Feb 9 06:56:29 PST 2012


Can we put OPACITY on a LABEL :

 CLASS
    NAME "Région administrative"
    EXPRESSION (([no_reg_admin] in '%RES_CO_REG%' ) AND ('[couleur]' =
'VERT'))
    GROUP "select"
    TEXT "[no_reg_admin]"
    STYLE
        COLOR 51 204 51
        OUTLINECOLOR 139 35 35
        WIDTH 10
    END
    LABEL
        COLOR 212 212 212
        OUTLINECOLOR    250 255 255
        ANTIALIAS       FALSE
        TYPE            TRUETYPE
        FONT            "arialbd"
        SIZE           50
        STYLE
            OPACITY 23
        END
    END
END

and my outputformat is :

OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "AGG/PNG"
    EXTENSION "png"
    IMAGEMODE RGBA
    TRANSPARENT ON
    FORMATOPTION          "INTERLACE=OFF"
END

it should work but my label is not transparent
is it a FONT problem ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120209/7c92eb15/attachment.htm>


More information about the MapServer-users mailing list