mapbox / mapbox/osm-navigation-map
Add background layer toggle for turn restriction data styles
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Add a [style layer toggle](https://www.mapbox.com/mapbox-gl-js/example/setstyle/) for using a different base style like the [Washington DC turn restriction signs location](https://api.mapbox.com/styles/v1/oormilavinod/cj6w1uip58q6v2rqrwuxk2sp7.html?title=true&access_token=pk.eyJ1Ijoib29ybWlsYXZpbm9kIiwiYSI6ImNqMzJqZWxpNjAwNDEyd284djQ5NHp6OTIifQ.DMjNS8_ZqjrZrtnwJI-CsA#14.13/38.9037/-77.0342) open data map.
`tms:https://api.mapbox.com/styles/v1/oormilavinod/cj6w1uip58q6v2rqrwuxk2sp7/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1Ijoib29ybWlsYXZpbm9kIiwiYSI6ImNqMzJqZWxpNjAwNDEyd284djQ5NHp6OTIifQ.DMjNS8_ZqjrZrtnwJI-CsA`

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the map style and layer setup in the repository, then read the linked Mapbox GL JS style-layer toggle example. Done means a background/base style toggle is available while the turn restriction data remains visible; verify the behavior in the map UI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100