mapbox / mapbox/mapbox-gl-directions
flyTo option does not work
Open
Nobody has claimed this yet.
help wanted
- Dominant language
- JavaScript
- Stars
- 255
- Forks
- 130
- PR merge metrics
- No merged PRs in 30d
Description
I can't turn off map moving when I set origin and destination. I tried to set `flyTo: false`, but it doesn't work and map still moves to the place between point A and B.
How I can just generate route, without moving the 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 how the flyTo option is handled when origin and destination are set, focusing on the route-generation path and the map movement behavior. Reproduce the issue with flyTo: false, then verify that a route is generated without moving the map.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100