Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CameraPanAnimation

Class to pan between the specified geo coordinates. Height can be specified to move the camera in and out.

Hierarchy

Index

Constructors

constructor

Properties

Protected duration

duration: number = 10000

Duration of a whole animation in milliseconds. Defaults to 10 seconds.

Protected easing

easing: (amount: number) => number = TWEEN.Easing.Linear.None

Easing function that control acceleration. Defaults to EasingFunction.Linear.

Type declaration

    • (amount: number): number
    • Parameters

      • amount: number

      Returns number

Readonly interpolation

interpolation: (v: number[], k: number) => number = TWEEN.Interpolation.CatmullRom

Specifies interpolation. Defaults to InterpolationFunction.CatmullRom

Type declaration

    • (v: number[], k: number): number
    • Parameters

      • v: number[]
      • k: number

      Returns number

Protected mapView

mapView: MapView

MapView which will be affected by the animation.

Optional name

name: undefined | string

Animation's name.

Protected Optional onFinished

onFinished: undefined | (() => void)

Callback that gets triggered once the animation ends.

Protected repeat

repeat: number = 0

Number of times the animation should be repeated. Defaults to 0.

Protected running

running: boolean = false

True if animation is being played.

Protected stopped

stopped: boolean = false

True if the animation has been interrupted.

Protected Optional tween

tween: TWEEN.Tween<GeoCoordinates | Record<string, number>>

Tweening controller.

Accessors

isRunning

  • get isRunning(): boolean

Methods

addPosition

start

  • start(time?: undefined | number, onFinished?: undefined | (() => void)): void

stop

  • stop(): void

update

  • update(time?: undefined | number): boolean

Generated using TypeDoc