Chevron DownAPI Reference

LinearInterpolator

Performs simple linear interpolation between two view states. Implements TransitionInterpolator.

See View State Transitions for usage examples.

Constructor

import {LinearInterpolator} from '@deck.gl/core';

new LinearInterpolator(['target', 'zoom']);

Parameters:

  • transitionProps (Array) - Array of prop names that should be linearly interpolated. Default ['longitude', 'latitude', 'zoom', 'bearing', 'pitch'].

Source

modules/core/src/transitions/linear-interpolator.js