This patch makes non-area ways more readable when zoomed out by thickening them. When zooming in the ways don't change their on-screen width until reaching certain scale. It works as follows:
if current scale is the max scale for a way, it is rendered with 1-pixel width. On every following zoom level it gets thicker by 1 pixel until it's on-screen width equals the defined wayWidth. If we zoom in more, the way maintains the same on-screen width until we reach a zoom level on which it should be thicker than wayWidth.
All this means that, when zooming in, ways appear with 1-pixel width, get thicker faster than they would normally and then maintain their width until certain zoom level. It's more or less like in google maps or mapnik.
I also used the rail lineStyle to indicate ways which should never be rendered thicker than wayWidth. I know it was meant for other purpose, so it should be replaced by dedicated declaration. I used it on elevation contours and marked trails. Way width 0 cannot be used for that purpose, because it makes ways to be drawn with 1-pixel width all the time and I wanted to use 2-pixel width for major elevation contours.
Log in to post a comment.