Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Possibility to show icons on both ends of a road #1374

Open
openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments
Open

Possibility to show icons on both ends of a road #1374

openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments

Comments

@openstreetmap-trac
Copy link

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

@openstreetmap-trac
Copy link
Author

Author: koying
[Added to the original trac issue at 1.30pm, Thursday, 11th December 2008]

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

@openstreetmap-trac
Copy link
Author

Author: ColinMarquardt
[Added to the original trac issue at 11.02pm, Sunday, 14th December 2008]

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

@openstreetmap-trac
Copy link
Author

Author: koying
[Added to the original trac issue at 11.18pm, Sunday, 14th December 2008]

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?

@openstreetmap-trac
Copy link
Author

Author: ColinMarquardt
[Added to the original trac issue at 10.10pm, Monday, 15th December 2008]

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant