labeling with multiple fields

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Tue Nov 30 16:36:27 EST 2004


Michael,

Try something like

CLASS
   ...
   TEXT ([dir] [street])
   LABEL
     ...
   END
END

TEXT overrides the LABELITEM tag. Any text chars inside the () and not
part of the [fieldname] is used as text in the label, so the space
between the fields will be included in the label.

-Steve W

Michael Smith wrote:
> Hi,
>
> Can I label my maps with multiple fields.
>
> labelitem "street"
>
> what is the correct syntax for this if I want to put the direction field on
> my streets labels along with street name.
>
> is it:
> labelitem "dir" + "street" ###also how can put a space between the two
> labels.
>
> I can seem to get this right.  Any suggestions?  thanks.
>



More information about the mapserver-users mailing list