Skip to main content

flywave-map-controls.camerapananimation

Home > @flywave/flywave-map-controls > CameraPanAnimation

CameraPanAnimation class

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

Signature:

export declare class CameraPanAnimation extends CameraAnimation 

Extends: CameraAnimation

Constructors

Constructor

Modifiers

Description

(constructor)(mapView, options, name)

Creates a new CameraPanAnimation object.

Properties

Property

Modifiers

Type

Description

interpolation

readonly

(v: number[], k: number) => number

Specifies interpolation. Defaults to [[InterpolationFunction.CatmullRom]]

isRunning

readonly

boolean

Returns true if the animation is being played.

name?

string

(Optional)

Methods

Method

Modifiers

Description

addPosition(geoPos)

Add a geo coordinate that should be visited.

start(time, onFinished)

Start the animation.

stop()

Stop the animation. Can be started again (with original values only, though).