mapbox / mapbox/mapbox-gl-directions

Accessing styling for each part of the route.

Open
#77 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged enhancement
Dominant language
JavaScript
Stars
255
Forks
130
PR merge metrics
No merged PRs in 30d

Description

Is it possible to access for each part (step) of the route? For example, how would I go about turning a drive down Townsend Street to red, and a drive down The Embarcadero to purple? This would be somewhat like how Google Maps shows traffic by coloring.

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

No files, tests, or entry points are named. Start by locating the plugin's route-rendering entry point and reviewing how the Directions API route is represented; done would require a clear, documented way to style individual route steps with distinct colors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.