Hi,

You can use an annotation layer with a symbol.  Something like:

LAYER
 NAME "labels"
 TYPE ANNOTATION
 DATA "/your/data/path/"
 STATUS ON
 LABELITEM "RD_NUM"

 CLASS
   NAME "road_numbers"
   STYLE
     SYMBOL 'rectangle'
     COLOR 255 255 255
     OUTLINECOLOR 0 0 0
     SIZE 16
   END
   LABEL
     TYPE TRUETYPE
     ANTIALIAS TRUE
     FONT "myfont"
     SIZE 8
     POSITION CC
     COLOR  0 0 0
     PARTIALS FALSE
   END
 END
END

and the symbol would be something like:
SYMBOL
 NAME 'rectangle'
 TYPE VECTOR
 POINTS
   0 0
   0 14
   25 14
   25 0
   0 0
 END
 FILLED TRUE
END

Regards,
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca

Nelson Correia wrote:
Hi, Do you know how to write an outline on the roads label boxes, just like the ones that Google Maps has? In Mapserver docs I only see an outline for the letters and not for the background. Does Mapserver support it? You can see the labels (L2150, K2, K7) with white background and black outline at: http://maps.google.com/maps?ie=UTF8&ll=50.764911,10.953197&spn=0.038979,0.11158&z=14 <http://maps.google.com/maps?ie=UTF8&ll=50.764911,10.953197&spn=0.038979,0.11158&z=14> Thanks, Nelson

------------------------------------------------------------------------
Get news, entertainment and everything you care about at Live.com. Check it out! <http://www.live.com/getstarted.aspx%20>
------------------------------------------------------------------------

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

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

Reply via email to