GOAnimationRotate

new Cesium.GOAnimationRotate(options)

Dynamic plotting rotation animation class
Name Type Description
options Object optional The object has the following properties:
Name Type Default Description
startTime Number 0 optional Animation start time in seconds
duration Number 0 optional Animation duration in seconds
name String "" optional Animated name, unique identifier of the animation
repeat Boolean false optional Whether to repeat the loop play, the default is false
rotateDirection RotateDirection RotateDirection.ClockWise optional Direction of rotation, default clockwise
startAngle Cartesian3 Cartesian3(0, 0, 0) optional Start angle, defaults to Cartesian3(0, 0, 0)
endAngle Cartesian3 Cartesian3(0, 0, 0) optional End angle, defaults to Cartesian3(0, 0, 0)

Members

duration : Number

Animation duration in seconds

endAngle : Cartesian3

End angle of the animation (in radians)

name : String

Animated name, unique identifier of the animation

repeat : Boolean

Whether to repeat the loop play, the default is false

rotateDirection : Number

The direction of rotation of the animation (clockwise, counterclockwise)

startAngle : Cartesian3

The starting angle of the animation (radian)

startTime : Number

Animation start time in seconds

Methods

destroy()

Destroy objects and free up resources.

getGOAnimationType()GOAnimationType

Get the animation type
Returns:
Animation type

pause()

Pause animation

play()

Play animation

reset()

Reset animation

setAnimationName(name)Boolean

Set the animation name
Name Type Description
name String Animation name
Returns:
Whether the setting is successful

stop()

Stop animation