绘制可视域
js
CloudApi.SuperAPI("DrawVisualField",params);
参数说明
js
let params = {
"Id": "11242",
"CoordType": 1,
"Coord": "-278150.0,289750.0",
"Height": 10,
"FieldOfView": 80,
"MaxDistance": 150,
"RexY/X": 0.5,
"Resolution": 1024
}
功能描述
获取绘制信息
开启监听事件 Monitor
触发 DrawVisualField
在 Monitor 回调函数中 可获取 CallBackType = "VisualFieldDrawData" 的数据
数据描述
返回的数据为 json 格式
json
{
"CallBackType": "VisualFieldDrawData",
"Id": "2",
"CoordType": 0,
"Coord": "119.265842,27.043766",
"Height": 20,
"Yaw": 60, //偏航角角度
"FieldOfView": 80,
"MaxDistance": 150
}