Conversation
in case entries with long names (e.g. public transport route relations that have a NSI entry) can still be disambiguated from each other
| const hasColor = d.entity.tags.colour && isColourValid(d.entity.tags.colour); | ||
| const hasRef = d.entity.tags.ref; | ||
| if (hasColor || hasRef) { | ||
| const color = isColourValid(d.entity.tags.colour) ? d.entity.tags.colour : '#555'; |
There was a problem hiding this comment.
Many recreational routes are associated with multiple colors, which could be tagged as a semicolon-delimited list in colour=* (regardless of any osmc:symbol=*).
|
|
||
| label.each(function(d) { | ||
| if (d.entity?.type !== 'relation') return; | ||
| const hasColor = d.entity.tags.colour && isColourValid(d.entity.tags.colour); |
There was a problem hiding this comment.
Recently on the forum we were discussing alternative keys that often associate routes with colors. colour=* is usually appropriate when a route is associated with a color. However, ref:colour=* is used in some places, particularly Spain, where they don’t attempt to uniquely color-code the routes in a network, but the color is still very important for recognizability. If iD uses the color as a background color for something that looks like a route marker, then this would be a good opportunity to use this key. Unfortunately, id-tagging-schema doesn’t have a ref:colour=* field yet. It’s a touchy subject, because people who don’t understand the Spanish system or others like it tend to rush to judgment about how they’re doing it wrong.
There was a problem hiding this comment.
It’s a touchy subject, because people who don’t understand the Spanish system or others like it tend to rush to judgment about how they’re doing it wrong.
I have not rushed to yell "you are doing it wrong way" but I definitely had such thought. Is there write-up somewhere which explains why ref:colour rather than colour makes sense?
(if it makes sense it would make sense to support it, including iD presets)
There was a problem hiding this comment.
The ref:colour=* documentation alludes to the situation. It’s primarily important in Spain, where colors on route shields apparently have political overtones. I’ve had someone explain the considerations there to me before, but it goes over my head. From my perspective as an OSM Americana developer, some of the distinctions seem like they could be represented by more specific network=* values instead, but other route colors seem to have no rhyme or reason to them, which would justify the presentational keys. Might be worth asking on the forum for a fuller explanation.
There was a problem hiding this comment.
I am mostly confused why not use regular colour - I ma not asking why it gets tagged but why use different key than normal?
There was a problem hiding this comment.
This highway route is colour=red because it’s known as the Red Route; one would identify it by color alone. This subway route is tagged (more or less) colour=green because it’s known as the Green Line and the branding is green through and through.
By contrast, AP-1 has (more or less) ref:colour=blue because the route markers are blue. That’s the only aspect of the route that’s blue. Normally we don’t tag this kind of detail, because all the routes in a given network share the same route marker style, but Spanish routes are more idiosyncratic.
and also render multiple ref shields in search results (if applicable) and drop some now unused imports
| margin-bottom: -4.5px; | ||
| } | ||
| .section-raw-membership-editor .member-row span.member-entity-ref-color, | ||
| .section-raw-member-editor .member-row span.member-entity-ref-color, |
There was a problem hiding this comment.
section-raw-member-editor?
where it has effects?
There was a problem hiding this comment.
The member editor is what appears at the bottom of the inspector when a relation is selected. The membership editor is what appears at the bottom of the inspector when a relation’s member is selected.
There was a problem hiding this comment.
so raw-membership-editor is for membership editor?
There is no special raw membership editor?
There was a problem hiding this comment.
Not sure what you’re asking, but the member and membership editors appear in the same location in the UI, in mutually exclusive situations. It does make sense to style them both consistently, as ref=* and network=* can both appear on relations and relation members, depending on the feature type.
There was a problem hiding this comment.
but the member and membership editors appear in the same location in the UI, in mutually exclusive situations
it does not seem mutually exclusive?
what about relations that are having members (so member editor is appearing) and are also part of other relations (route master one for example) so membership editor is appearing.
In fact membership editor will appears always, I think to enable adding relation into another relation as member.
(I am not nitpicking for sake of nitpicking, I am trying to confirm that I understood what you wanted to express)
There was a problem hiding this comment.
what about relations that are having members (so member editor is appearing) and are also part of other relations (route master one for example) so membership editor is appearing.
Yes, you would see both in that case.
|
I asked on https://t.me/OSMes/175014 for feedback Not sure is it necessary to supporti |
|
It's something the Spanish community came with for road shields, but I see how it could be used beyond it too. For example in Zaragoza, Spain, each public transport line has a specific visual representation: Day lines are shown with a given background colour, with white text on stops. Night lines instead are dark blue background and a given text colour. The question is whether that is interesting to show in iD or not. And also probably how if we have so much complexity with osmc:symbol, why couldn't we have it as well for ref colour. |
I would say not, because |
|
it is kind of fitting for trains to have train-shaped icons... well, I guess that solution would be to have limit on how long icon is allowed to be? Have you created already an issue for that? |
|
Long wordmark icons are precisely why name-suggestion-index has historically preferred Twitter and Facebook icons (which have to be square) over Wikimedia Commons logos. Does ÖBB NightJet have a small logo or icon (P8972) that could be added to this Wikidata item? I believe NSI already prefers small logos over full logos. |
|
Site note: we are putting too much stuff onto this one line... |
Probably a version with just the letters NJ, which are used when abbreviating the train service (see https://iechub.rfi.it/ArriviPartenze/ArrivalsDepartures/Monitor?Arrivals=False&Search=tarvisio&PlaceId=3443 during night time as an example) Edit: I wrote my message without realizing @hlfan actually already solved this https://www.wikidata.org/w/index.php?title=Q28127371&diff=prev&oldid=2469124147 |


A slightly different approach for #8759 (and a bit beyond) to fix the issue with overly long NSI preset names for PT route relations. Supersedes #105831.
reftag in a (colored2) "shield"Some before/after examples:
Footnotes
Different to the approach in Fix: Remove Disambiguators from Relation Names in Membership Editor. Fixes #8759 #10583, this is not relying on implicit assumptions about NSI's naming scheme and does not interfere with (translated) names of regular presets. ↩
If applicable, see also show (route) relation
colours in lists and comboboxes #9424 ↩