radlkarte icon indicating copy to clipboard operation
radlkarte copied to clipboard

Rendering of different priorities

Open mfrieling opened this issue 2 years ago • 4 comments

The priority is defined as highest/medium/lowest (README file) or interregional/regional/local (script). But in the website legend they are only described as main routes and other routes, furthermore regional and local are rendered exactly the same (line width). Is there a reason for it distinguishing between regional and local in the data but not in the display? And if they should be distinguished, how to define which way is regional and which one local?

mfrieling avatar Feb 15 '24 19:02 mfrieling

To extend this question, should we (however) integrate official bicycle routes (or add them as additional layer extracted from OSM via Overpass query)?

mfrieling avatar Feb 15 '24 19:02 mfrieling

The two lower priorities are mostly rendered the same, but the lowest one gets ultrathin / disappears before the medium one. So it definitely makes sense to use all three priorities while mapping (especially in areas where the network of recommended routes gets a little dense). Check out the network for Vienna to see it in action.

Regarding official bike routes: if they are useful they should be integrated into the recommended route network. It's the same as with infrastructure: we don't show all that's there but only what is useful to create a coherent network.

markusstraub avatar Feb 16 '24 08:02 markusstraub

Thanks. That makes sense that the lowest one (local) disappears before the medium one. But their line width is the same:

https://github.com/markusstraub/radlkarte/blob/eabe283f7bdceefc500add6451c16fec194fbb75/radlkarte.js#L43

Maybe we could make it even a little bit thinner (or medium a little bit thicker if thinner would be too thin)?

mfrieling avatar Feb 18 '24 18:02 mfrieling

I believe the situation is good as it is. It makes the map easier to read when the user only sees two priorities (i.e. two line widths) most of the time - and only when zooming out the the third category gets superthin / removed earlier.

See

rkGlobal.priorityFullVisibleFromZoom = [0, 14, 15];
rkGlobal.priorityReducedVisibilityFromZoom = [0, 12, 14];

But feel free to experiment with it using real-world data :) .. If you think you can improve readability I'm happy to see a pull request with the changes.

markusstraub avatar Feb 21 '24 16:02 markusstraub

I recently changed the rendering so that all three priorities are clearly different in all zoom levels.

markusstraub avatar Sep 16 '24 08:09 markusstraub