MarkMaterialPolylineDash

MarkMaterialPolylineDash

线型虚线材质。

Constructor

new MarkMaterialPolylineDash(optionsopt)

Author:
  • zpc
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
Name Type Attributes Default Description
color Cesium.Color <optional>
Cesium.Color.WHITE 虚线颜色 。
gapColor Cesium.Color <optional>
Cesium.Color.TRANSPARENT 虚线之间空隙的颜色。
dashLength Number <optional>
16.0 每段虚线的长度。
dashPattern Number <optional>
255.0 虚线的样式。

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