PolylineTrailMaterialProperty

new Cesium.PolylineTrailMaterialProperty(options)

尾迹线材质类。
Name Type Description
options Object optional 对象具有如下属性:
Name Type Default Description
color Number Color.WHITE optional 指定线型的填充颜色,默认值为白色。
outlineColor Number Color.BLACK optional 指定轮廓线的颜色,默认值为黑色。
outlineWidth Number 1.0 optional 数值属性,指定轮廓线的宽度,以像素为单位,默认值为1.0。
trailLength Number 0.3 The numeric property sets the proportion of the length of the trailing trace in the entire line. The default value is 0.3.
constantSpeed Number 0.0 The numeric property sets the running speed of the trailing trace in meters (seconds per second). The default value is 0.0.
period Number 1000.0 The numeric attribute sets the running period of the trailing trace from the start point to the end point. The unit is seconds. The default value is 1000.0.

Members

color : Number

设置尾迹线的线型颜色。

constantSpeed : Number

设置尾迹线的运行速度,单位(米/秒)。

readonlydefinitionChanged : Event

Gets the event that is raised whenever the definition of this property changes. The definition is considered to have changed if a call to getValue would return a different result for the same time.

readonlyisConstant : Boolean

Gets a value indicating if this property is constant. A property is considered constant if getValue always returns the same result for the current definition.

period : Number

设置尾迹线从起点到终点的运行周期,单位是秒。当constantSpeed属性值为0时,period属性才可生效。

trailLength : Number

Sets the proportion of the length of the trailing trace in the entire line, which ranges from (0.0-1.0).

Methods

equals(other)Boolean

Compares this property to the provided property and returns true if they are equal, false otherwise.
Name Type Description
other Property optional The other property.
Returns:
true if left and right are equal, false otherwise.

getType(time)String

Gets the Material type at the provided time.
Name Type Description
time JulianDate The time for which to retrieve the type.
Returns:
The type of material.

getValue(time, result)Object

Gets the value of the property at the provided time.
Name Type Description
time JulianDate The time for which to retrieve the value.
result Object optional The object to store the value into, if omitted, a new instance is created and returned.
Returns:
The modified result parameter or a new instance if the result parameter was not supplied.