Effects classes for covering ground and Bim models
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
Object with the following properties:
|
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
-
Effect color
-
Default Value:
BLACK
-
Effect coverage maximum height
-
Default Value:
undefined
-
Effect coverage minimum height
-
Default Value:
undefined
-
Range polygon point string (unit latitude and longitude, no height required)
-
Default Value:
[]
-
Whether to show
-
Default Value:
true
Methods
-
Destroy effect
-
Initialize effect