[Mapcss] width: thinnest

Sebastian Spaeth Sebastian at SSpaeth.de
Sat Jul 10 23:27:00 BST 2010


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. 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.

spaetz




More information about the Mapcss mailing list