mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
636 B
636 B
FlyToInterpolator
Implements the TransitionInterpolator interface. Designed to use with the transitionInterpolator prop of InteractiveMap.
This interpolator offers similar behavior to Mapbox's flyTo method.
import ReactMapGL, {FlyToInterpolator} from 'react-map-gl';
<ReactMapGL
...
transitionDuration={1000}
transitionInterpolator={new FlyToInterpolator()} />
constructor
new FlyToInterpolator()