mapbox / mapbox/mapbox-gl-directions

Display markers for waypoints

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

Nobody has claimed this yet.

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

Description

![waypoints](https://user-images.githubusercontent.com/63680054/81466470-ef5e8c80-919f-11ea-85b4-b62c9c5e7fcc.png)

```
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.