Constructor
new MarkMaterialPolylineFlow(optionsopt)
Example
// 创建线标绘
var polylineTrail = new HczjEarth.MarkPolyline({
positions : [
new HczjEarth.GeoPosition(-75, 40, 500000),
new HczjEarth.GeoPosition(-125, 40, 500000)
],
// 创建流动线材质
material : new HczjEarth.MarkMaterialPolylineFlow({
color : Cesium.Color.GREEN,
duration : 1000,
url : "http://127.0.0.1:3000/Build/HczjEarth/Assets/Textures/Polyline/DataTransLine.png"
}),
width : 10
});
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
此对象拥有以下属性:
Properties
|
Extends
Members
color :Cesium.Color
- Default Value:
- Cesium.Color.WHITE
获取或设置线颜色,该颜色覆盖图片颜色。
注意:只有开启线颜色时,该属性才生效。
Type:
- Cesium.Color
duration :Number
- Default Value:
- 1000
获取或设置线流动的间隔时间。以毫秒为单位。
Type:
- Number
enableColor :Boolean
- Default Value:
- true
获取或设置是否开启线颜色。
Type:
- Boolean
(readonly) materialProperty :Cesium.MaterialProperty
- Overrides:
获取Cesium原生材质属性。
Type:
- Cesium.MaterialProperty
url :String
- Default Value:
- ""
获取或设置流动线图片的URL。
Type:
- String