PathGraphics

new Cesium.PathGraphics(options)

Describes a polyline defined as the path made by an Entity as it moves over time.
参数名称 类型 描述信息
options PathGraphics.ConstructorOptions 可选 Object describing initialization options

成员(属性)

Gets the event that is raised whenever a property or sub-property is changed or modified.

distanceDisplayCondition : Property|undefined

Gets or sets the DistanceDisplayCondition Property specifying at what distance from the camera that this path will be displayed.
Gets or sets the Property specifying the number of seconds in front of the object to show.
Gets or sets the Property specifying the material used to draw the path.
默认值: Color.WHITE
Gets or sets the Property specifying the maximum number of seconds to step when sampling the position.
默认值: 60
Gets or sets the boolean Property specifying the visibility of the path.
默认值: true
Gets or sets the Property specifying the number of seconds behind the object to show.
Gets or sets the numeric Property specifying the width in pixels.
默认值: 1.0

方法

Duplicates this instance.
参数名称 类型 描述信息
result PathGraphics 可选 The object onto which to store the result.
返回值:
The modified result parameter or a new instance if one was not provided.
Assigns each unassigned property on this object to the value of the same property on the provided source object.
参数名称 类型 描述信息
source PathGraphics The object to be merged into this object.

定义的类型

Cesium.PathGraphics.ConstructorOptions

Initialization options for the PathGraphics constructor
属性:
属性名称 类型 可选 默认值 描述信息
show Property | boolean <可选>
true A boolean Property specifying the visibility of the path.
leadTime Property | number <可选>
A Property specifying the number of seconds in front the object to show.
trailTime Property | number <可选>
A Property specifying the number of seconds behind of the object to show.
width Property | number <可选>
1.0 A numeric Property specifying the width in pixels.
resolution Property | number <可选>
60 A numeric Property specifying the maximum number of seconds to step when sampling the position.
material MaterialProperty | Color <可选>
Color.WHITE A Property specifying the material used to draw the path.
distanceDisplayCondition Property | DistanceDisplayCondition <可选>
A Property specifying at what distance from the camera that this path will be displayed.