GOAnimationWay

new Cesium.GOAnimationWay(options)

Dynamic drawing 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 Animation name, unique identification of animation
repeat Boolean false optional Repeat loop playback, default false
showPath Boolean false optional Display path, default is false
tangentDirection Boolean false optional Along the tangent direction, the default is false
pathWidth Number 0.5 optional Path line width, default is 0.5
pathColor Color "#FF0000" optional Path thread color, the default is "#FF0000"
pathType WayPathType WayPathType.POLYLINE optional Path type, the default is WayPathType.POLYLINE
wayPoints Array [] optional Path point array, default is []

Members

duration : Number

Animation duration, in seconds

name : String

Animation name, unique identification of animation

pathColor : Number

Path color

pathType : Number

Path type

pathWidth : Number

Path width

repeat : Boolean

Whether to repeat the loop playback, the default is false

showPath : Boolean

Show path line

startTime : Number

Animation start time, in seconds

tangentDirection : Boolean

Along the tangent direction

wayPoints : Array.<PlotPoint3D>

Waypoint

Methods

destroy()

Destroy objects and release resources.

getCurrentPt()PlotPoint3D

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

getGOAnimationType()GOAnimationType

Get animation type
Returns:
Animation type

getPathColor()string

Get path line color
Returns:
Path line color

getPathType()WayPathType

Get route line type
Returns:
Path line type

getPathWidth()Number

Get path width
Returns:
Path line width

getWayPoints()Array.<PlotPoint3D>

Get path animation point array
Returns:
Path point array

pause()

Pause animation

play()

Play animation

reset()

Reset animation

setAnimationName(name)Boolean

Set animation name
Name Type Description
name String Animation name
Returns:
Settings successful or not.

setPathColor(color)

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

setPathType(pathType)

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

setPathWidth(width)

Set 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 Show path or not.

stop()

Stop animation