Skip to content

绘制面

js
CloudApi.SuperAPI("DrawMesh",params);

功能描述

绘制面

绘制面

功能描述

获取绘制信息

开启监听事件 Monitor

触发 DrawMesh

在 Monitor 回调函数中 可获取 CallBackType = "DrawMeshData" 的数据

数据描述

返回的数据为 json 格式

json
{
  "CallBackType": "DrawMeshData",
  "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"
    }
  ]
}

参数

js
const params = {
  "CoordType":0,
  "IsDraw": "1"// 0:清除绘制,1:绘制
}