mapbox / mapbox/osm-navigation-map

Add background layer toggle for turn restriction data styles

Open
#111 0 comments 0 reactions 0 assignees View on GitHub

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`

screen shot 2017-09-06 at 7 42 57 pm

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.