Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename shield image names based on structured route properties #1032

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

1ec5
Copy link
Member

@1ec5 1ec5 commented Jan 27, 2024

This is a proof of concept for refactor integrating openmaptiles/openmaptiles#1620, which restructures the transportation layer’s feature properties to put route relation tags in structured properties instead of the inflexible network=ref mini-language. This PR also plumbs route names (as opposed to road names) and route colors through to the shield selection code, though support for route colors will require an additional change to the shield library not included here.

@1ec5 1ec5 added openmaptiles A change is needed in OpenMapTiles to support this shields planetiler Pending next planetiler release shield-generator Issues specific to the shield library labels Jan 27, 2024
@1ec5 1ec5 self-assigned this Jan 27, 2024
@ZeLonewolf
Copy link
Member

Now that openmaptiles/openmaptiles#1620 has been merged, this PR can proceed. We'll hold off on the final merge until the tiles are updated. Alternately, if the tiles are updated before the PR is ready, I think that means this PR will become a critical fix for Americana as well as other downstream styles such as AARoads or Gnome?

@1ec5
Copy link
Member Author

1ec5 commented Feb 20, 2024

GNOME Maps doesn’t use Americana tiles, but Overpass Ultra does.

@1ec5 1ec5 force-pushed the 1ec5-structured-image-names-1620 branch from 20cc5ce to b641f58 Compare February 23, 2024 02:25
@1ec5 1ec5 marked this pull request as ready for review February 23, 2024 02:28
@1ec5 1ec5 requested a review from ZeLonewolf April 2, 2024 15:55
@ZeLonewolf
Copy link
Member

ZeLonewolf commented Apr 2, 2024

We should be able to use:
https://tile.ourmap.us/data/omt_3_15.json

As the current live-updating bleeding-edge planet. Also we should get all existing shield clients to make this change and switch to that endpoint. That should allow for a clean transition.

Inspect link here:
https://tile.ourmap.us/inspect-omt_3_15.html

1ec5 added 2 commits April 3, 2024 02:05
The name of each shield image in the style is now based on structured route properties and can includes the route name and color.
@1ec5 1ec5 force-pushed the 1ec5-structured-image-names-1620 branch from a9841d5 to f83d0fe Compare April 3, 2024 09:10
@1ec5
Copy link
Member Author

1ec5 commented Apr 3, 2024

Interstate 695 is interrupted by the Patapsco River where the Francis Scott Key Bridge once stood.

Copy link
Member

@ZeLonewolf ZeLonewolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@1ec5 1ec5 merged commit cbad54b into main Apr 4, 2024
6 checks passed
@1ec5 1ec5 deleted the 1ec5-structured-image-names-1620 branch April 4, 2024 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openmaptiles A change is needed in OpenMapTiles to support this planetiler Pending next planetiler release shield-generator Issues specific to the shield library shields
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants