MarkMaterialGrid

MarkMaterialGrid

标绘格网材质。

Constructor

new MarkMaterialGrid(optionsopt)

Author:
  • zpc
Example
var circleAirSpace = new MarkAirSpaceArc({
     name : "弧形空域",
     radius : 500000,
     height : 200000,
     material : new MarkMaterialGrid({
         color : Cesium.Color.RED,
     }),
     position : new GeoPosition(-112.210693, 36.0994841)
 })
Parameters:
Name Type Attributes Description
options Object <optional>
此对象拥有以下属性:
Properties
Name Type Attributes Default Description
color Cesium.Color <optional>
Cesium.Color.WHITE 颜色。
cellAlpha Number <optional>
0.1 每个格子的alpha值(不透明度)。
lineCount Cesium.Cartesian2 <optional>
new Cesium.Cartesian2(8, 8) 用于指定沿每个轴的格网线的数量。
lineThickness Cesium.Cartesian2 <optional>
new Cesium.Cartesian2(1.0, 1.0) 用于指定沿每个轴的格网线的粗细。
lineOffset Cesium.Cartesian2 <optional>
new Cesium.Cartesian2(0.0, 0.0) 用于指定沿每个轴的格网线的偏移量。

Extends

Members

cellAlpha :Number

Default Value:
  • 0.1
设置/获取每个格子的alpha值(不透明度)。
Type:
  • Number

color :Cesium.Color

Default Value:
  • Cesium.Color.WHITE
设置/获取格网颜色。
Type:
  • Cesium.Color

lineCount :Cesium.Cartesian2

Default Value:
  • new Cesium.Cartesian2(8.0, 8.0)
设置/获取指定沿每个轴的格网线的数量。
Type:
  • Cesium.Cartesian2

lineOffset :Cesium.Cartesian2

Default Value:
  • new Cesium.Cartesian2(0.0, 0.0)
设置/获取每个轴的格网线的偏移量Cesium.Cartesian2
Type:
  • Cesium.Cartesian2

lineThickness :Cesium.Cartesian2

Default Value:
  • new Cesium.Cartesian2(1.0, 1.0)
设置/获取沿每个轴的格网线的粗细,Cesium.Cartesian2属性。
Type:
  • Cesium.Cartesian2

(readonly) materialProperty :Cesium.MaterialProperty

Overrides:
获取Cesium原生材质属性。
Type:
  • Cesium.MaterialProperty