[mapserver-users] mapfile annotation underlined text

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Thu Oct 14 12:53:52 EDT 2010


A single layer solution would be ideal but this I a cool workaround, effect is very nice! -Steve

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Flavio Hendry
Sent: Thursday, October 14, 2010 3:06 AM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] mapfile annotation underlined text

Hi Diana

There is a little trick to do that, if you do not mind the text being 
"backgrounded". Just put the layer twice in the mapfile, once with a 
backgroundshadowcolor, once without and with an offset of 1 0.

Result see: http://www.tydac.ch/underline.gif

LAYER
     NAME "Grundstücksnummern"
...
     STATUS ON
     LABELITEM "gs_nummer"
     SIZEUNITS feet
         CLASS
             COLOR -1 -1 -1
             LABEL
                 ANTIALIAS TRUE
                 TYPE TRUETYPE
                 FONT "cadastra"
                 POSITION ur
                 SIZE 5
                 COLOR 0 0 0
                 OFFSET 1 0
                 BACKGROUNDCOLOR 255 255 255
                 FORCE true
             END
         END
     PROJECTION
      "init=epsg:21781"
     END
END


LAYER
     NAME "Grundstücksnummern"
...
     STATUS ON
     LABELITEM "gs_nummer"
     SIZEUNITS feet
         CLASS
             COLOR -1 -1 -1
             LABEL
                 ANTIALIAS TRUE
                 TYPE TRUETYPE
                 FONT "cadastra"
                 POSITION ur
                 SIZE 5
                 COLOR 0 0 0
                 BACKGROUNDCOLOR 255 255 255
                 BACKGROUNDSHADOWCOLOR 0 0 0
                 FORCE true
             END
         END
     PROJECTION
      "init=epsg:21781"
     END
END

-- 
Mit freundlichem Gruss / Best regards
Flavio Hendry

----------------------------------------------------------------
TYDAC Inc.  - http://www.tydac.ch
Web Mapping - http://www.mapserver.ch
Swiss Maps  - http://www.mapplus.ch
----------------------------------------------------------------
############      Mit freundlichen Gruessen / Kind Regards
############     Flavio Hendry, CEO - mailto:flavio at tydac.ch
############         TYDAC AG - http://www.tydac.ch
####    ####        Geographic Information Solutions
####    ####       Optingenstrasse 27 -- CH-3013 Bern
############   Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860
----------------------------------------------------------------
    Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27
----------------------------------------------------------------

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list