GOAnimationWay

new Cesium.GOAnimationWay(options)

Dynamic plot path 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
showPath Boolean false optional Whether to display the path, the default is false
tangentDirection Boolean false optional Whether it is in the tangential direction, the default is false
pathWidth Number 0.5 optional Path line width, default is 0.5
pathColor Color "#FF0000" optional Path line color, default is "#FF0000"
pathType WayPathType WayPathType.POLYLINE optional Path type, defaults to WayPathType.POLYLINE
wayPoints Array [] optional Path point array, default is []

Members

duration : Number

Animation duration in seconds

name : String

Animated name, unique identifier of the animation

pathColor : Number

Path line color

pathType : Number

Path type

pathWidth : Number

Path line width

repeat : Boolean

Whether to repeat the loop play, the default is false

showPath : Boolean

Whether to display the path line

startTime : Number

Animation start time in seconds

tangentDirection : Boolean

Whether it is in the tangential direction

wayPoints : Array.<Cartesian3>

Path point

Methods

destroy()

Destroy objects and free up resources.

getCurrentPt()Cartesian3

Get the current position of the path animation
Returns:
current position

getGOAnimationType()GOAnimationType

Get the animation type
Returns:
Animation type

getPathColor()string

Get the path line color
Returns:
Path line color

getPathType()WayPathType

Get path line type
Returns:
Path line type

getPathWidth()Number

Get path line width
Returns:
Path line width

getWayPoints()Array.<Cartesian3>

Get path animation point array
Returns:
Path point array

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

setPathColor(color)

Set the path line color
Name Type Description
color String Path line color raga

setPathType(pathType)

Set the path line type
Name Type Description
pathType WayPathType Path line type

setPathWidth(width)

Set the path line width
Name Type Description
width Number Path line width

setShowPath(value)

Set whether to display the animation path
Name Type Description
value Boolean Whether to display the path

stop()

Stop animation