FlyToInterpolator
Performs "fly to" style interpolation between two geospatial view states. Implements TransitionInterpolator.
See View State Transitions for usage examples.
Constructor
import {FlyToInterpolator} from '@deck.gl/core';
new FlyToInterpolator({speed: 2});
Parameters:
- options (Object)
curve
(Number, optional) - The zooming "curve" that will occur along the flight path. Default1.414
.speed
(Number, optional) - The average speed of the animation defined in relation tooptions.curve
, it linearly affects the duration, higher speed returns smaller durations and vice versa. Default1.2
.screenSpeed
(Number, optional) - The average speed of the animation measured in screenfuls per second. Similar tospeed
it linearly affects the duration, when specifiedspeed
is ignored.maxDuration
(Number, optional) - Maximum duration in milliseconds, if calculated duration exceeds this value,0
is returned.