mapbox / mapbox/mapbox-gl-directions

flyTo option does not work

Open
#244 9 comments 1 reaction 0 assignees View on GitHub

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.