Constructor
new MarkMaterialPolylineDash(optionsopt)
Example
var polylineDash = new MarkPolyline({
positions : [
new GeoPosition(-75, 40, 500000),
new GeoPosition(-125, 40, 500000)
],
material : new MarkMaterialPolylineDash({
color : Cesium.Color.GREEN,
gapColor : Cesium.Color.RED
}),
width : 5
});
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
此对象拥有以下属性:
Properties
|
Extends
Members
color :Cesium.Color
- Default Value:
- Cesium.Color.WHITE
获取或设置虚线材质的颜色。
Type:
- Cesium.Color
dashLength :Number
- Default Value:
- 16.0
获取或设置每段虚线的长度。
Type:
- Number
dashPattern :Number
- Default Value:
- 255.0
获取或设置虚线的样式。
Type:
- Number
gapColor :Cesium.Color
- Default Value:
- Cesium.Color.TRANSPARENT
获取或设置虚线之间空隙的颜色。
Type:
- Cesium.Color
(readonly) materialProperty :Cesium.MaterialProperty
- Overrides:
获取Cesium原生材质属性。
Type:
- Cesium.MaterialProperty