Labels on multiple lines

Daryl Herzmann akrherz at IASTATE.EDU
Mon Oct 25 19:27:51 EDT 2004


On Mon, 25 Oct 2004, Chris Clements wrote:

>Hi All,
>
>I am very new to MapServer and am having some trouble with labels, I am
>using version 4.2.3 to display shapefiles and would like to label some
>polygons using multiple fields and also place the labels from the different
>fields on multiple lines (stack it essentially)
>
>Labelling is not a problems using:
>
>TEXT ([BLOCK] [STATUS] [YEAR]) in a class.  This will display a label with
>all 3 items on one line. i.e.  512A P 2004
>Is there a way to have the label displayed on three lines?

Welcome to Mapserver!  I believe you are looking for the 'WRAP' keyword

So in your case

TEXT ([BLOCK] [STATUS] [YEAR])
WRAP " "

check out the mapserver docs for more information:

http://mapserver.gis.umn.edu/doc42/mapfile-reference.html

HTH,
  daryl

--
/**
 * Daryl Herzmann (akrherz at iastate.edu)
 * Program Assistant -- Iowa Environmental Mesonet
 * http://mesonet.agron.iastate.edu
 */



More information about the mapserver-users mailing list