mapbox / mapbox/mapbox-gl-js

Ability to return flyTo tween function without triggering flight

Open
#11,662 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature :green_apple: needs discussion :speech_balloon:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

## Motivation

I've had a few times where I want to fly to a location on a map, but don't want to execute immediately or necessarily tie to a timer. For example, I might want to connect the progress of the flight path to scroll position. As far as I can tell, there's no current way to return a function to do this. I'd like to be able to give the map a position to fly to from its current position and return a function that I can input a 0.0-1.0 progress input into and get back a position along that flight path.

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 reading the existing flyTo API and its current flight behavior. Determine how a deferred progress function could be exposed without triggering the flight; done means callers can provide a 0.0–1.0 progress value and receive positions along the path without immediate execution.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.