[mapserver-users] label and opacity

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Thu Feb 9 13:41:18 EST 2012


At present there is no support for transparent labels. Style properties apply to an accompanying marker or bounding box, not the label itself.

Steve

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Marc-André Trottier
Sent: Thursday, February 09, 2012 8:56 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] label and opacity

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/4880a98b/attachment.html


More information about the mapserver-users mailing list