how can I use 2 labelitems in the same layer

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Thu Aug 24 17:41:37 PDT 2006


Luis Treviño wrote:
> Hi,
>  
> I want to put 2 labels in a point layer. Is it possible to use 2 
> labelitems in the same layer.
> How can I do that.
>  
> Any ideas?
>  
> Regards,
> Luis

Luis,

You might try something like:

LAYER
   DATA "..."
   ...
   CLASS
     ...
     TEXT "[FIELD1]@[FIELD2]"
     LABEL
       ...
       WRAP '@'
     END
   END
END

In the example above, FIELD1 and FIELD2 would be the two items you want 
to use as the two labels and I used '@' as a wrap character so the two 
items will be on separate lines.

Another option would be to have an two layers using the same DATA and 
position the label differently like UR and LR, but there is not 
assurance that you won't get one of the labels and not the other because 
of collisions.

-Steve W



More information about the MapServer-users mailing list