绘制区域周界
js
CloudApi.SuperAPI("DrawOutLine",params);
功能描述
获取绘制信息
开启监听事件 Monitor
触发 DrawOutLine
在 Monitor 回调函数中 可获取 CallBackType = "OutLineDrawData" 的数据
数据描述
返回的数据为 json 格式
json
{
"CallBackType": "OutLineDrawData",
"Id": "2",
"CoordType": 0,
"Points": [
{
"Coord": "119.265842,27.043766",
"Height": 10
},
{
"Coord": "119.266342,27.043766",
"Height": 10
},
{
"Coord": "119.266542,27.044066",
"Height": 10
},
{
"Coord": "119.266542,27.044366",
"Height": 10
},
{
"Coord": "119.266542,27.044666",
"Height": 10
}
],
"Color": "FF0000",
"Height": 20,
"Type": 1//1,2,3,4
}
参数
js
const params = {
"Id": "11222",
"CoordType": 0,
"Type": 0,//0是Arrow(箭头流动)
"Height": 20,
"Color": "FF0000"
}