react-map-gl/docs/components/fly-to-interpolator.md
2018-01-10 11:31:46 -08:00

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()

Source

viewport-fly-to-interpolator.js