Skip to content

Highway Shields Not Rendering Properly in OHM Americana #1362

Closed

Description

@DavidJDBA

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.

  1. Go to '(https://preview.americanamap.org/pr/1330/#map=11.27/37.9919/-100.785)'
  2. Set the time-slider to 1955. This should show both highways displaying correctly for that year.
  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.

Screenshots & URL

Image

https://preview.americanamap.org/pr/1330/#map=11.27/37.9878/-100.8159

Activity

  1. 1ec5 commented on May 11, 2026

    @1ec5
    Member

    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.

  2. added theissue type on May 11, 2026
  3. 1ec5 commented on May 13, 2026

    @1ec5
    Member

    Set the time-slider to 1955. This should show both highways displaying correctly for that year.

    This is working now with the 50N relation:

    Shields for U.S. 50N/156 and U.S. 50/50S

    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.

    This is still an issue:

    Shields for U.S. 156 but no road
  4. flha127 commented on May 20, 2026

    @flha127

    It's not a Vtiles bug.

    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.

    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

  5. DavidJDBA commented on Jun 11, 2026

    @DavidJDBA
    Author

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

    Image
  6. 1ec5 commented on Jun 12, 2026

    @1ec5
    Member

    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.

    start_date: 1956-01-01. end_date: 1956-12-31. route_road_1_ref: 50. route_road_2_ref: 50 S.

    There‘s a lot going on, but I wonder if taking the maximum dates in some places causes problems with null values.

  7. DavidJDBA commented on Aug 12, 2026

    @DavidJDBA
    Author

    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.

    Image

    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.

  8. 1ec5 commented on Aug 12, 2026

    @1ec5
    Member

    Keys like ref=* and network=* go on route relations, not multilinestring relations.

  9. DavidJDBA commented on Aug 13, 2026

    @DavidJDBA
    Author

    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.

  10. DavidJDBA commented on Aug 13, 2026

    @DavidJDBA
    Author

    I'm now modifying highway relations to resolve the issues mentioned in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions