<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<BR>I've done it with several rectangle symbols.<BR>
&nbsp;<BR>
Thank you all for the quick&nbsp;answers! :)<BR>
&nbsp;<BR>
Nelson&nbsp;<BR>
&nbsp;<BR>&gt; Date: Tue, 28 Apr 2009 19:33:01 +0200<BR>&gt; Subject: Re: [mapserver-users] Outline on the roads label boxes<BR>&gt; From: thomas.bonfort@camptocamp.com<BR>&gt; To: Steve.Lime@dnr.state.mn.us<BR>&gt; CC: nelsonwc7@hotmail.com; mapserver-users@lists.osgeo.org<BR>&gt; <BR>&gt; The label background is getting quite cluttered actually, we have<BR>&gt; backgroundcolor, backgroundshadowcolor, backgroundshadowsize, and<BR>&gt; maybe a couple of others I'm forgetting.<BR>&gt; <BR>&gt; maybe we could add something equivalent to backgroundstyle that would<BR>&gt; have the same syntax as a class STYLE, that would then be passed on as<BR>&gt; a normal style to msDrawShadeSymbol, along with the shapeobj<BR>&gt; corresponding to the background shade.<BR>&gt; <BR>&gt; we'd then have all the goodness of mapserver styles: outlines,<BR>&gt; symbols, opacity, etc...<BR>&gt; <BR>&gt; just a thought,<BR>&gt; <BR>&gt; thomas<BR>&gt; <BR>&gt; On Tue, Apr 28, 2009 at 7:23 PM, Steve Lime &lt;Steve.Lime@dnr.state.mn.us&gt; wrote:<BR>&gt; &gt; You can however, develop separate classes based on label length. You'd have different<BR>&gt; &gt; symbols to handle wide text vs. narrow. For example:<BR>&gt; &gt;<BR>&gt; &gt; LABELITEM 'myitem'<BR>&gt; &gt; CLASS<BR>&gt; &gt; &nbsp;EXPRESSION (length('[myitem]') &gt; 5) # use a really wide shield<BR>&gt; &gt; &nbsp;STYLE<BR>&gt; &gt; &nbsp; &nbsp;SYMBOL 'reallywideshield'<BR>&gt; &gt; &nbsp; &nbsp; ...<BR>&gt; &gt; &nbsp;END<BR>&gt; &gt; END<BR>&gt; &gt; CLASS<BR>&gt; &gt; &nbsp;EXPRESSION (length('[myitem]') &gt; 3) # use a wide marker<BR>&gt; &gt; &nbsp;STYLE<BR>&gt; &gt; &nbsp; &nbsp;SYMBOL 'wideshield'<BR>&gt; &gt; &nbsp; &nbsp; ...<BR>&gt; &gt; &nbsp;END<BR>&gt; &gt; END<BR>&gt; &gt; CLASS # default to a regular shield<BR>&gt; &gt; &nbsp;STYLE<BR>&gt; &gt; &nbsp; &nbsp;SYMBOL 'shield'<BR>&gt; &gt; &nbsp; &nbsp; ...<BR>&gt; &gt; &nbsp;END<BR>&gt; &gt; END<BR>&gt; &gt;<BR>&gt; &gt; Steve<BR>&gt; &gt;<BR>&gt; &gt;&gt;&gt;&gt; On 4/28/2009 at 12:10 PM, in message<BR>&gt; &gt; &lt;2922382e0904281010i47fadd9ds51346665bd481f51@mail.gmail.com&gt;, Thomas Bonfort<BR>&gt; &gt; &lt;thomas.bonfort@camptocamp.com&gt; wrote:<BR>&gt; &gt;&gt; this isn't currently possible.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; best regards,<BR>&gt; &gt;&gt; thomas<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia &lt;nelsonwc7@hotmail.com&gt; wrote:<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; Hi,<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; Do you know how to write an outline on the roads label boxes, just like the<BR>&gt; &gt;&gt;&gt; ones that Google Maps has? In Mapserver docs I only see an outline for the<BR>&gt; &gt;&gt;&gt; letters and not for the background. Does Mapserver support it?<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; You can see the labels (L2150, K2, K7) with white background and black<BR>&gt; &gt;&gt;&gt; outline at:<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt; http://maps.google.com/maps?ie=UTF8&amp;ll=50.764911,10.953197&amp;spn=0.038979,0.11158<BR>&gt; &gt;&gt; &amp;z=14<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; Thanks,<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; Nelson<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; ________________________________<BR>&gt; &gt;&gt;&gt; Get news, entertainment and everything you care about at Live.com. Check it<BR>&gt; &gt;&gt;&gt; out!<BR>&gt; &gt;&gt;&gt; _______________________________________________<BR>&gt; &gt;&gt;&gt; mapserver-users mailing list<BR>&gt; &gt;&gt;&gt; mapserver-users@lists.osgeo.org<BR>&gt; &gt;&gt;&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; --<BR>&gt; &gt;&gt; www.camptocamp.com<BR>&gt; &gt;&gt; +33 4 79 26 57 97<BR>&gt; &gt;&gt; _______________________________________________<BR>&gt; &gt;&gt; mapserver-users mailing list<BR>&gt; &gt;&gt; mapserver-users@lists.osgeo.org<BR>&gt; &gt;&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; www.camptocamp.com<BR>&gt; +33 4 79 26 57 97<BR><br /><hr />Get news, entertainment and everything you care about at Live.com. <a href='http://www.live.com/getstarted.aspx ' target='_new'>Check it out!</a></body>
</html>