GoAnimation

Animation base class of dynamic plotting

new SuperMap3D.GoAnimation(options)

Name Type Description
options Object optional Objects have the following properties:
Name Type Default Description
startTime Number 0.0 optional Animation start time,in seconds
duration Number 5.0 optional Animation duration,in seconds
repeat Boolean false optional Whether to repeat the loop play, the default is false
name String "" optional Animation name, the unique identifier of the animation

Methods

destroy()

Destroy objects,release resources.

getStartTime()double

Get the start time of the animation.
Returns:
Animation start time

pause()

Pause animation

play()

Play animation

reset()

Reset animation

setAnimationName(name)boolean

Set the name of the animation
Name Type Description
name Animation name
Returns:
Is the setting successful?

setStartTime(startTime)double

Set the start time of the animation.
Name Type Description
startTime double Start time of the animation
Returns:
Start time of the animation

stop()

Stop animation