mapbox / mapbox/mapbox-gl-directions
Unable to style line colour/width in Directions
Nobody has claimed this yet.
- 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
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 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