osm-americana/openstreetmap-americana

Provide interactivity on road clicks

Open

#76 opened on Jan 5, 2022

View on GitHub
 (3 comments) (1 reaction) (0 assignees)JavaScript (78 forks)auto 404
help wanted

Repository metrics

Stars
 (238 stars)
PR merge metrics
 (PR metrics pending)

Description

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 https://github.com/osm-americana/openstreetmap-americana/issues/75

Contributor guide