说明:
射线有多个坐标点组成,可以设置点的左边与连线的颜色、曲度等信息。
调用:
__cy.line.add({
id : "",
type: "",
position_type : 1,
points:[
{
position : [22,22,22]
}
...
],
template : 1,
color : "#118983",
width: 10,
brightness : 30
}, callback)
入参:
id | //射线编号 |
---|---|
type | //线类型 |
position_type | //位置信息类型,0 表示xyz, 1表示经纬度⾼度 |
points | 组成线的点 |
- position | // [x, y, z] or [经度, 纬度, 距地面高度] |
color | //颜色,设置后忽略模板 |
width | 线粗细 |
brightness | //亮度,设置后忽略模板 |
callback 回调输出
{
result:"" //输出结果 成功:"ok", 失败 返回具体原因
}
参考效果图