mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Ability to return flyTo tween function without triggering flight

Open sdl60660 opened this issue 2 years ago • 1 comments

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.

sdl60660 avatar Apr 01 '22 18:04 sdl60660

Hello! Just wondering if this is something that's likely to ever be picked up? We have a project right now that would really benefit from being able to return/work with the tween functions on flyTo/fitBounds, rather than requiring that we run the animation.

sdl60660 avatar Jun 27 '22 15:06 sdl60660