发光墙
发光墙需要额外调用接口,需要引用插件 WallDynamicMaterialProperty.js
HTML
<script src="SDK/Plugins/WallDynamicMaterialProperty/WallDynamicMaterialProperty.js"></script>
发光墙绘制
JavaScript
greenWallRise = viewer.entities.add({
wall: {
positions: LSGlobe.Cartesian3.fromDegreesArray([
-115.0,50.0,
-112.5,50.0,
-110.0,50.0,
-107.5,50.0,
-105.0,50.0,
-102.5,50.0,
-100.0,50.0,
-97.5,50.0,
-95.0,50.0,
-92.5,50.0,
-90.0,50.0,
]),
maximumHeights: [
100000,
200000,
100000,
200000,
100000,
200000,
100000,
200000,
100000,
200000,
100000,
],
minimumHeights: [
0,
100000,
0,
100000,
0,
100000,
0,
100000,
0,
100000,
0,
],
material: new LSGlobe.WallDynamicMaterialProperty(
{
color: new LSGlobe.Color(0.0, 0.0, 1.0, 0.5)
}
),
outline: false
}
});