Possibility to show icons on both ends of a road #1374
Comments
Author: koying It would be great if you could produce some kind of mockup JPG, so that I know what you want to achieve... |
Author: ColinMarquardt Let's try ASCII art. ------ is a way, * is a "normal" node, O is a node with a restriction icon (for maxheight, maxwidth, maxweight or maxlength). Right now, we can display
if the node at O has one of maxheight, maxwidth, maxweight or maxlength tags set. When the way has one of these tags set however, nothing happens. What I would propose is to display the following in that occasion:
Or display the first drawing, just that the node wouldn't have to have any restriction tag (or the node would not be there in the first place). |
Author: koying I think the first case would be better, otherwise, what do we do if we have 2 connected roads with such restrictions? Overlapping icons? With the 1st case, we could use the same logic as with names, i.e. by default, if the road is long enough, put the icon in the middle; if the road is really long, repeat the sign every x meters. OTOH, in this case, we cannot visually see when the restriction actually starts... What do you think? |
Author: ColinMarquardt Replying to [comment:3 koying]:
I'm fine with this. The repeat rate could be pretty high, and if you want to see the full extent of such a restriction, you'd have to hover over the street or klick it. But taking this a bit further, could we highlight the way instead by defining an additional wide "casing"? Imagine the following way, the IIIIII being a regular road with its own casing, and the -------- being the restriction markers (so the example shows a part of a way without any such restriction).
This would not need icons anymore. The restriction casing would need an on/off toggle though, or be a toggleable style that is used together with the existing style definitions. |
Reporter: ColinMarquardt
[Submitted to the original trac issue database at 11.13pm, Tuesday, 2nd December 2008]
MapnikPlus.mas as of a few minutes ago shows icons for the restriction tag keys maxheight, maxwidth, maxweight and maxlength. This works well when the tag is set on a node, but most often, it is used on a way. It would thus be nice if the style editor had a checkbox like "Also display this icon on both ends of a way".
The text was updated successfully, but these errors were encountered: