[mapserver-dev] drop shadow for labels

Stephen Woodbridge woodbri at swoodbridge.com
Sun May 21 13:30:14 PDT 2017


Ahhh, sorry. I believe that you can include the label block twice, the 
first time you draw the shadow, with some offset and using your shadow 
color, the second time you draw it with the foreground color.

You should open an issue against the docs they are not correct. There 
might be an FRC that covers this change, but I'm not seeing one.

On 5/21/2017 4:13 PM, Tamas Szekeres wrote:
> I've already learnt, that BACKGROUNDCOLOR, BACKGROUNDSHADOWCOLOR, 
> BACKGROUNDSHADOWSIZE can be replaced with label styles, but what about 
> SHADOWCOLOR and SHADOWSIZE?
> 
> Thanks,
> 
> Tamas
> 
> 
> 2017-05-21 22:01 GMT+02:00 Stephen Woodbridge <woodbri at swoodbridge.com 
> <mailto:woodbri at swoodbridge.com>>:
> 
>     On 5/21/2017 1:54 PM, Tamas Szekeres wrote:
> 
>         Hi,
> 
>         Could someone explain how to configure drop shadow for label in
>         mapserver 7.x ?
>         It looks like the SHADOWCOLOR/SHADOWSIZE implementation has been
>         stripped from the code and I'm not sure what replaces that option.
>         The documentation is very brief in this regard.
> 
> 
>     BACKGROUNDCOLOR [r] [g] [b] | [hexadecimal string]
> 
>          Color to draw a background rectangle (i.e. billboard). Off by
>     default.
> 
>          Note
> 
>          Removed in 6.0. Use a LABEL STYLE object with GEOMTRANSFORM
>     labelpoly and COLOR.
>     BACKGROUNDSHADOWCOLOR [r] [g] [b] | [hexadecimal string]
> 
>          Color to draw a background rectangle (i.e. billboard) shadow.
>     Off by default.
> 
>          Note
> 
>          Removed in 6.0. Use a LABEL STYLE object with GEOMTRANSFORM
>     labelpoly, COLOR and OFFSET.
>     BACKGROUNDSHADOWSIZE [x][y]
> 
>          How far should the background rectangle be offset? Default is 1.
> 
>          Note
> 
>          Removed in 6.0. Use a LABEL STYLE object with GEOMTRANSFORM
>     labelpoly, COLOR and OFFSET.
> 
>     http://mapserver.org/mapfile/label.html#label-style
>     <http://mapserver.org/mapfile/label.html#label-style>
> 
>     STYLE
>        GEOMTRANSFORM 'labelpoly'
>        COLOR 153 153 153
>        OFFSET 3 2
>     END # STYLE
>     STYLE
>        GEOMTRANSFORM 'labelpoly'
>        COLOR 255 0 0
>     END # STYLE
> 
>     ---
>     This email has been checked for viruses by Avast antivirus software.
>     https://www.avast.com/antivirus <https://www.avast.com/antivirus>
> 
>     _______________________________________________
>     mapserver-dev mailing list
>     mapserver-dev at lists.osgeo.org <mailto:mapserver-dev at lists.osgeo.org>
>     https://lists.osgeo.org/mailman/listinfo/mapserver-dev
>     <https://lists.osgeo.org/mailman/listinfo/mapserver-dev>
> 
> 



More information about the mapserver-dev mailing list