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

Provide interactivity on road clicks #76

Open
akadouri opened this issue Jan 5, 2022 · 1 comment
Open

Provide interactivity on road clicks #76

akadouri opened this issue Jan 5, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@akadouri
Copy link
Collaborator

akadouri commented Jan 5, 2022

The road vector information should allow for the data necessary to allow someone to click a feature and be provided additional context.

At the very least, each US highway should have information that can take you to the corresponding wikipedia page.

ex: https://www.openstreetmap.org/way/21775289 US:US=6 -> https://en.wikipedia.org/wiki/U.S._Route_6

This Mapbox GLJS tutorial is a good starting point https://docs.mapbox.com/mapbox-gl-js/example/filter-features-within-map-view/

See thread https://osmus.slack.com/archives/C01V02K52UX/p1641410558052000
Related to #75

@ZeLonewolf ZeLonewolf added the help wanted Extra attention is needed label Jan 5, 2022
@1ec5
Copy link
Member

1ec5 commented Mar 3, 2022

At the very least, each US highway should have information that can take you to the corresponding wikipedia page.

Ideally, OpenMapTiles would expose wikidata tags from the route relations, since it already uses Wikidata to come up with names in many cases.

More generally, it would be nice if we could open OSM.org node/way/relation pages when clicking on certain places and POIs. For that to work, OpenMapTiles would need to assign feature IDs consistent with OSM element IDs. OpenMapTiles is assigning feature IDs, but it’s unclear to me if these IDs reliably correspond to OSM element IDs according to a formula, as in the Mapbox Streets source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants