[mapserver-users] Outline on the roads label boxes

Christy Nieman cnieman at dmsolutions.ca
Tue Apr 28 13:26:24 EDT 2009


Or you could have one class and have the name of the right shield to use 
in an attribute in your data and use attribute mapping

    STYLE
      SYMBOL [myShieldAttribute]
      ...
    END

Regards,
Christy

Steve Lime 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
>>     
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>   


More information about the mapserver-users mailing list