地形抬升
参数名称 | 类型 | 描述信息 | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
可选
参数对象,包括以下:
|
继承
成员(属性)
已添加的区域个数
区域 列表
- 继承自:
positions : Array.<Array>|Array.<string>|Array.<LngLatPoint>|Array.<Cesium.Cartesian3>
thing/terrain/TerrainEditBase.js 66
坐标位置数组,只显示单个区域【单个区域场景时使用】
是否显示抬升区,为false时效果类同 地形开挖 的效果
设置所有区域的抬升高度(单位:米),目前不支持单个区域的高度自定义。
方法
添加单个区域
参数名称 | 类型 | 默认值 | 描述信息 | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
positions |
Array.<string> | Array.<Array> | Array.<LngLatPoint> | Array.<Cesium.Cartesian3> |
坐标位置数组 |
|||||||||||||||||||||||||||||
options |
object |
{}
|
可选
控制的参数
|
返回值:
添加区域的记录对象
清除抬升
返回值:
无
根据id获取区域对象
参数名称 | 类型 | 描述信息 |
---|---|---|
id |
number |
id值 |
返回值:
区域对象
隐藏单个区域
参数名称 | 类型 | 描述信息 |
---|---|---|
id |
number |
区域id值 |
返回值:
无
移除单个区域
参数名称 | 类型 | 描述信息 |
---|---|---|
item |
number | object |
区域的id值,或 addArea返回的区域对象 |
返回值:
无
显示单个区域
参数名称 | 类型 | 描述信息 |
---|---|---|
id |
number |
区域id值 |
返回值:
无