mapbox / mapbox/mapbox-gl-directions

Waypoint style

Open
#180 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

Can't see waypoints on map, even while overriding style.
```
var mapDirections = new MapboxDirections({ // eslint-disable-line no-undef
accessToken: mapboxgl.accessToken, // eslint-disable-line no-undef
unit: 'metric',
profile: 'mapbox/cycling',
interactive: false,
controls: {
inputs: false,
instructions: false,
profileSwitcher: false,
},
styles: [
{
'id': 'directions-waypoint-point',
'type': 'circle',
'source': 'directions',
'paint': {
'circle-radius': 60,
'circle-color': '#fa8bc9',
},
'filter': [
'all',
['in', '$type', 'Point'],
['in', 'id', 'waypoint'],
],
}
],
})
```

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 from the MapboxDirections configuration and its styles array, reproducing the reported case with interactive and controls disabled. Verify how the directions waypoint layer is rendered and why the supplied circle style does not make it visible; done means waypoints appear with the requested styling on the map.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.