[mapserver-users] Outline on the roads label boxes

Thomas Bonfort thomas.bonfort at camptocamp.com
Tue Apr 28 13:33:01 EDT 2009


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 be passed on as
a normal style to msDrawShadeSymbol, along with the shapeobj
corresponding to the background shade.

we'd then have all the goodness of mapserver styles: outlines,
symbols, opacity, etc...

just a thought,

thomas

On Tue, Apr 28, 2009 at 7:23 PM, Steve Lime <Steve.Lime at dnr.state.mn.us> wrote:
> 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
>  EXPRESSION (length('[myitem]') > 3) # use a wide marker
>  STYLE
>    SYMBOL 'wideshield'
>     ...
>  END
> END
> CLASS # default to a regular shield
>  STYLE
>    SYMBOL 'shield'
>     ...
>  END
> END
>
> Steve
>
>>>> On 4/28/2009 at 12:10 PM, in message
> <2922382e0904281010i47fadd9ds51346665bd481f51 at mail.gmail.com>, Thomas Bonfort
> <thomas.bonfort at camptocamp.com> wrote:
>> this isn't currently possible.
>>
>> best regards,
>> thomas
>>
>> On Tue, Apr 28, 2009 at 6:50 PM, Nelson Correia <nelsonwc7 at 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
>>> letters and not for the background. Does Mapserver support it?
>>>
>>> You can see the labels (L2150, K2, K7) with white background and black
>>> outline at:
>>>
>>>
>> http://maps.google.com/maps?ie=UTF8&ll=50.764911,10.953197&spn=0.038979,0.11158
>> &z=14
>>>
>>> Thanks,
>>>
>>> Nelson
>>>
>>> ________________________________
>>> Get news, entertainment and everything you care about at Live.com. Check it
>>> out!
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>>
>>
>>
>>
>> --
>> www.camptocamp.com
>> +33 4 79 26 57 97
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>



-- 
www.camptocamp.com
+33 4 79 26 57 97


More information about the mapserver-users mailing list