mapbox-gl-js
mapbox-gl-js copied to clipboard
Ability to return flyTo tween function without triggering flight
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.
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.