绘制剖切区域
js
CloudApi.SuperAPI("DrawTerrainCut",params);
功能描述
获取绘制信息
开启监听事件 Monitor
触发 DrawTerrainCut
在 Monitor 回调函数中 可获取 CallBackType = "SectioningDrawData" 的数据
数据描述
返回的数据为 json 格式
json
{
"CallBackType": "SectioningDrawData",
"Id": "00001",
"SectioningHeight":10,//剖切高度(m)
"OffsetHeight":10,//中心点偏移高度(m)
"CoordType": 1,
"AreaPoints":[
{
"Coord":"-272160.0,308130.0",
"Height":3.5
},
{
"Coord":"-282930.0,308720.0",
"Height":3.5
},
{
"Coord":"-282530.0,300210.0",
"Height":3.5
},
{
"Coord":"-272270.0,300700.0",
"Height":3.5
}
]
}
参数
js
const params = {
"Id": "00001",
"OffsetHeight": 10,
"CoordType": 1,
"AreaPoints": [
{
"Coord": "-335050.0,292980.0",
"Height": 55
},
{
"Coord": "-335050.0,287130.0",
"Height": 55
},
{
"Coord": "-329340.0,288620.0",
"Height": 55
},
{
"Coord": "-329340.0,292720.0",
"Height": 55
}
]
}