PolylineTrailMaterialProperty

new Cesium.PolylineTrailMaterialProperty(options)

尾迹线材质,是MaterialProperty的一种.
Name Type Description
options Object optional 对象具有如下属性:
Name Type Default Description
color Property Color.GREEN optional 设置尾迹线的颜色 Color .
duration Property 1000 optional 设置尾迹线从起点到终点运行周期,单位为豪秒,默认值为1000
trailLength Property 0.2 optional 设置尾迹线的长度,其代表占有整条线的长度比例,默认值为0.2.

Members

设置/获取线的颜色 Color.
当属性改变是激发事件.
设置/获取运行周期
该属性对象是否为常量.
设置/获取尾迹线的比例.

Methods

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.
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.
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.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.