Opened 10 years ago

Last modified 10 years ago

#1374 new enhancement

Possibility to show icons on both ends of a road

Reported by: ColinMarquardt Owned by: koying
Priority: major Milestone:
Component: merkaartor Version:
Keywords: Cc:

Description

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

Change History (4)

comment:1 Changed 10 years ago by koying

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

comment:2 Changed 10 years ago by 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

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

comment:3 follow-up: Changed 10 years ago by 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...
But then again, in case 2, we cannot say to which one of 2 connected roads the restriction applies...

What do you think?

comment:4 in reply to: ↑ 3 Changed 10 years ago by ColinMarquardt

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

Note: See TracTickets for help on using tickets.