this isn't currently possible.
best regards,
thomas
On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia nelson...@hotmail.com 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
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
You can however, develop separate classes based on label length. You'd have
different
symbols to handle wide text vs. narrow. For example:
LABELITEM 'myitem'
CLASS
EXPRESSION (length('[myitem]') 5) # use a really wide shield
STYLE
SYMBOL 'reallywideshield'
...
END
END
CLASS
The label background is getting quite cluttered actually, we have
backgroundcolor, backgroundshadowcolor, backgroundshadowsize, and
maybe a couple of others I'm forgetting.
maybe we could add something equivalent to backgroundstyle that would
have the same syntax as a class STYLE, that would then
I've done it with several rectangle symbols.
Thank you all for the quick answers! :)
Nelson
Date: Tue, 28 Apr 2009 19:33:01 +0200
Subject: Re: [mapserver-users] Outline on the roads label boxes
From: thomas.bonf...@camptocamp.com
To: steve.l...@dnr.state.mn.us
CC: nelson