跳到主要内容

flywave-map-controls.camerarotationanimation

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

CameraRotationAnimation class

Create an animation around the Z-axis of the camera.

Signature:

export declare class CameraRotationAnimation extends CameraAnimation 

Extends: CameraAnimation

Constructors

Constructor

Modifiers

Description

(constructor)(mapView, m_mapControls, options, name)

Creates a new CameraRotationAnimation object.

Properties

Property

Modifiers

Type

Description

endAngle

readonly

number

Final camera rotation (in the Z-axis).

startAngle

readonly

number

Initial camera rotation (in the Z-axis).

Methods

Method

Modifiers

Description

start(time, onFinished)

Start the animation.

stop()

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