mapbox / mapbox/mapbox-gl-directions

Unable to style line colour/width in Directions

Open
#274 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hey everyone,

I have tried to use this directions plugin for a project and after following all available documentation/ instructions and tutorials to a T I am still unable to change the style of the directions layer applied on the map.

I also tried to import the hardcoded directions style (available at https://github.com/mapbox/mapbox-gl-directions/blob/master/src/directions_style.js) into my project as a separate document and change it there, but that didn't work either.
Any help or suggestions would be very much appreciated

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 reviewing the plugin documentation and the linked src/directions_style.js file, then reproduce the styling attempt in a minimal mapbox-gl-js project. Done means determining whether the directions line color and width can be overridden and documenting the concrete entry point or a reproducible fix.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.