GroundEffect

new SuperMap3D.GroundEffect(options)

覆盖地面、Bim模型的特效类
Name Type Description
options Object optional Object with the following properties:
Name Type Default Description
scene Scene optional 当前三维场景
show Boolean true optional 是否显示.
positions Array [] optional 特效覆盖范围,[100,30,120,30,120,25,100,25]
color Color BLACK optional 特效颜色
maxTerrainHeight Number optional 特效覆盖最大高度
minTerrainHeight Number optional 特效覆盖最小高度
id String optional 特效ID
Example:
// Example 1: Create primitive with a single instance
var groundEfficiency = new MGIS_SuperMap3D.GroundEffect({
  scene: scene,
  id: "GroundEffect",
  color: MGIS_SuperMap3D.Color.BLACK.withAlpha(0.7),
  positions: [
      116.45176403038715, 39.91854121757242,
      116.45476259428729, 39.917860169814084,
      116.45474818632952, 39.91702445884773,
      116.45183404482059, 39.91703150007755,
      ],
   maxTerrainHeight: 70,
   minTerrainHeight: 10
});

Members

color : Color

特效颜色
Default Value: BLACK

maxTerrainHeight : Number

特效覆盖最大高度
Default Value: undefined

minTerrainHeight : Number

特效覆盖最小高度
Default Value: undefined

positions : Array

范围多边形点串(单位经纬度,不需要高度)
Default Value: []

show : Boolean

是否显示
Default Value: true

Methods

destroy()

销毁特效

initialize()

初始化特效