Krakonos / merkaartor-oldbugs

0 stars 0 forks source link

Possibility to show icons on both ends of a road (redmine import 1374, ColinMarquardt, created ) #107

Open Krakonos opened 9 years ago

Krakonos commented 9 years ago

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

Krakonos commented 9 years ago

It would be great if you could produce some kind of mockup JPG, so that I know what you want to achieve...

Krakonos commented 9 years ago

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

------O------

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:

O------*------O

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).    
Krakonos commented 9 years ago

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...But then again, in case 2, we cannot say to which one of 2 connected roads the restriction applies...

What do you think?    
Krakonos commented 9 years ago

Replying to [comment:3 koying]:

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

But then again, in case 2, we cannot say to which one of 2 connected roads the restriction applies...

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

IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII


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.(And if the extra casing was fairly generic, it could be used for other features, like the lit=yes/no thing.)