Interface MapNavigatorAnimationOptions

The options for an animation.

interface MapNavigatorAnimationOptions {
    duration?: number;
    ease?: (n: number) => number;
}

Properties

Properties

duration?: number

The duration of the animation in milliseconds. Must be positive or 0. Defaults to defaults.fit.duration.

ease?: (n: number) => number

An easing function for the animation that adjusts the speed of the animation.

For some example easing functions, see http://easings.net/ or https://gist.github.com/gre/1650294.

When omitted, defaults to defaults.fit.ease.

Type declaration

    • (n: number): number
    • Parameters

      • n: number

        a number in range [0,1]

      Returns number

      a number in range [0,1]