GOAnimationAttribute

new Cesium.GOAnimationAttribute(options)

Dynamic Plotting Property Animation
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
lineColorAnimation Boolean false optional Whether line color animation is valid, the default is false
startLineColor Color "#FF0000" optional Start line color
endLineColor Color "#0000FF" optional End line color.
lineWidthAnimation Boolean false optional Line width animation is valid, the default is false
startLineWidth Number 0.0 optional Start line width, default is 0.0
endLineWidth Number 5.0 optional End line width, default is 5.0
surroundLineColorAnimation Boolean false optional Whether the serif line color animation is valid, the default is false
startSurroundLineColor Color "#FF0000" optional Start serif color
endSurroundLineColor Color "#0000FF" optional End serif color
surroundLineWidthAnimation Boolean false optional Whether the serif line width animation is valid, the default is false
startSurroundLineWidth Number 0 optional Start serif width, default is 0
endtSurroundLineWidth Number 1 optional End serif width, default is 1

Members

duration : Number

Animation duration in seconds

endLineColor : Color

End line color
Default Value: Color.Blue

endLineWidth : Number

End line width
Default Value: 5

endSurroundLineColor : Color

Serif end line color
Default Value: Color.Blue

endSurroundLineWidth : Number

Serif end line width
Default Value: 1.0

lineColorAnimation : Boolean

Is the line color animation effective?
Default Value: false

lineWidthAnimation : Boolean

Line width animation is valid
Default Value: false

name : String

Animated name, unique identifier of the animation

repeat : Boolean

Whether to repeat the loop play, the default is false

startLineColor : Color

Start line color
Default Value: Color.Red

startLineWidth : Number

Start line width
Default Value: 0

startSurroundLineColor : Color

Serif line color
Default Value: Color.Blue

startSurroundLineWidth : Number

Serif start line width
Default Value: 0

startTime : Number

Animation start time in seconds

surroundLineColorAnimation : Boolean

Whether the serif line color animation is valid
Default Value: false

surroundLineWidthAnimation : Boolean

Whether the serif line width animation is valid
Default Value: false

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