mapbox / mapbox/mapbox-gl-directions
Display markers for waypoints
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 255
- Forks
- 130
- PR merge metrics
- No merged PRs in 30d
Description

```
this.state.directions.setOrigin(st);
for( var i = 0; i < this.props.stationsCoor.length; i ++ ){
this.state.directions.addWaypoint([this.props.stationsCoor[i][1], this.props.stationsCoor[i][0]]);
}
this.state.directions.setDestination(en);
```
any idea how to display markers for waypoints as google map
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 tracing the directions setup shown in the issue, especially setOrigin, addWaypoint, and setDestination, to find how waypoint data is represented and rendered. Determine the expected marker behavior from the reported screenshot and verify that waypoint markers appear without changing the route itself.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100