[Mapcss] width: thinnest
Sebastian Klein
bastikln at googlemail.com
Sun Jul 11 18:08:07 BST 2010
Sebastian Spaeth wrote:
> On 2010-07-09, Sebastian Klein wrote:
>>>> in swing you can draw a very fine line (much thinner than 1 px).
>>>> This is useful if you have a focus on certain features. If all unimportant
>>>> ways are drawn in this style, the map looks clear, but still complex.
>>> Wouldn't that just be width: 0.01?
>> probably very close:
>>
>> > width - the width of this BasicStroke. The width must be greater than
>> or equal to 0.0f. If width is set to 0.0f, the stroke is rendered as the
>> thinnest possible line for the target device and the antialias hint setting.
>
> Personally, I don't see a need for 0.0f.
0.0f is just 0. Here it has a special meaning, but in css 0 means "don't
render it!". The idea is to tell the renderer: Do the thinnest possible!
E.g. for a printer 0.01 might be still not be the limit.
> If I give a renderer 0.01 it
> should be up to the renderer as to what do with that. The less
> special-case parsing I have to do the faster, and this value probably is
> going to get parsed a lot.
>
> But then if everyone is for that, I am not going to stand in the way.
OK, moved it to the discussion page. No need to make the core syntax
overly complicated. This could be part of an extension.
Sebastian
More information about the Mapcss
mailing list