mapbox / mapbox/mapbox-gl-directions
Waypoint style
Nobody has claimed this yet.
- 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
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 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