You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Highway Shields Not Rendering Properly in OHM Americana #1362
Bug description
In the Americana style, highway shields are not rendering along some routes. On others, only the shields appear and the corresponding way is invisible. The problems were observed in relations with no end_date. However, on some relations with no end_date where the open-ended relation is the only one, the shields appear correctly.
What should be happening?
Can this behavior be fixed so the highways and shields appear correctly?
Repro Steps
This example, near Garden City, KS, should illustrate the problem. The US-50N designation was changed to US-156 in 1956. US-50S was changed to US-50.
Set the time-slider to 1955. This should show both highways displaying correctly for that year.
Advance the time-slider to 2001. Here, the shields are missing from the highway=trunk US-50 and the highway=primary US-156 has only the shields visible.
I think this might be due to the change I made to OHM Americana to support network:wikidata=*. It looks like as long as it supports network:wikidata=* for a particular network, it no longer supports just network=* by itself for that network. Changeset 238,542 adds network:wikidata=Q408192 to a bunch of network=US:US, so we’ll see if that works.
Advance the time-slider to 2001. Here, the shields are missing from the highway=trunk US-50 and the highway=primary US-156 has only the shields visible.
3. Advance the time-slider to 2001. Here, the shields are missing from the highway=trunk US-50 and the highway=primary US-156 has only the shields visible.
You have 2 types of objects :
one is for the infrastructure (streets, avenues, boulevards) mapped as linestring or multilinestring relations ;
the other is a type=route+route=road relation
The two US-50 route relations have a 2000 end date so you won't see it in 2001. Is it incorrect ?
US-156 is mapped as a route relation so you'll see it in 2001.
The infrastructure however had both highway and route tags with highway=primary + ref=US 50N + end_date=1956, I removed the two latter so you'll be able to see the highway and route.
This helps, but shields are still missing from some routes when the active relation has no end date. The newer route for US-50 around Garden City started in 1987 and is a segment in the 1987-2000 and 2000- (most recent) versions of US-50. The shields appear in the 1987-2000 iteration but are missing when the time slider is moved past 2001. Adding a fake end date (2100) brought the shields back to the map. I have noticed this behavior on some other routes elsewhere (e.g. I-80 in Pennsylvania).
As things stand, the tiles correctly group the U.S. 50 and U.S. 50S relations together on a single linestring feature, but there should also be a coincident linestring feature that carries just U.S. 50.
There‘s a lot going on, but I wonder if taking the maximum dates in some places causes problems with null values.
Cleaning up relations has helped with this issue. Highway number shields appear as expected if overlapping dates are removed. E.g. "[19XX-1999][2000-]" instead of "[19XX-2000][2000-]". However, there is a problem with shields not appearing if a relation includes a multilinestring, even with this fix.
In 1973, highways 6 and 50 were shifted to I-70 at Mack, Colorado. Before then, they shared a two-lane trunk highway westward into Utah. That segment no longer deserves "trunk" status. The same way was used in two separate multilinestring relations northwest of Mack, the pre-1973 trunk highway and a post-1973 tertiary road. The trunk relation was incorporated into the US-6 and US-50 relations for pre-1973 routes. The highway rendering shows as expected, but the shields do not appear in OHM Americana.
Using the lower-level ways instead of the multilinestring relations as members of route relations works. Highway shields are now displaying on routes as intended.
Activity
1ec5 commentedon May 11, 2026
I think this might be due to the change I made to OHM Americana to support
network:wikidata=*. It looks like as long as it supportsnetwork:wikidata=*for a particular network, it no longer supports justnetwork=*by itself for that network. Changeset 238,542 addsnetwork:wikidata=Q408192to a bunch ofnetwork=US:US, so we’ll see if that works.1ec5 commentedon May 13, 2026
This is working now with the 50N relation:
This is still an issue:
flha127 commentedon May 20, 2026
It's not a Vtiles bug.
You have 2 types of objects :
The two US-50 route relations have a 2000 end date so you won't see it in 2001. Is it incorrect ?
US-156 is mapped as a route relation so you'll see it in 2001.
The infrastructure however had both highway and route tags with highway=primary + ref=US 50N + end_date=1956, I removed the two latter so you'll be able to see the highway and route.
So as to avoid those mistakes, I would suggest not mixing both highways and routes into a single object and not adding any tags to the linestring except sources while only using type=multilinestring+highway=* and type=route+route=road relations
https://www.openhistoricalmap.org/way/202266370#map=15/40.20543/-79.93433&layers=O&date=1916-01-03&daterange=1850-01-01,2022-12-31
DavidJDBA commentedon Jun 11, 2026
This helps, but shields are still missing from some routes when the active relation has no end date. The newer route for US-50 around Garden City started in 1987 and is a segment in the 1987-2000 and 2000- (most recent) versions of US-50. The shields appear in the 1987-2000 iteration but are missing when the time slider is moved past 2001. Adding a fake end date (2100) brought the shields back to the map. I have noticed this behavior on some other routes elsewhere (e.g. I-80 in Pennsylvania).
1ec5 commentedon Jun 12, 2026
As things stand, the tiles correctly group the U.S. 50 and U.S. 50S relations together on a single linestring feature, but there should also be a coincident linestring feature that carries just U.S. 50.
There‘s a lot going on, but I wonder if taking the maximum dates in some places causes problems with null values.
DavidJDBA commentedon Aug 12, 2026
Cleaning up relations has helped with this issue. Highway number shields appear as expected if overlapping dates are removed. E.g. "[19XX-1999][2000-]" instead of "[19XX-2000][2000-]". However, there is a problem with shields not appearing if a relation includes a multilinestring, even with this fix.
In 1973, highways 6 and 50 were shifted to I-70 at Mack, Colorado. Before then, they shared a two-lane trunk highway westward into Utah. That segment no longer deserves "trunk" status. The same way was used in two separate multilinestring relations northwest of Mack, the pre-1973 trunk highway and a post-1973 tertiary road. The trunk relation was incorporated into the US-6 and US-50 relations for pre-1973 routes. The highway rendering shows as expected, but the shields do not appear in OHM Americana.
1ec5 commentedon Aug 12, 2026
Keys like
ref=*andnetwork=*go on route relations, not multilinestring relations.DavidJDBA commentedon Aug 13, 2026
Using the lower-level ways instead of the multilinestring relations as members of route relations works. Highway shields are now displaying on routes as intended.
DavidJDBA commentedon Aug 13, 2026
I'm now modifying highway relations to resolve the issues mentioned in this issue.