输入:
__cy.camera.transform({
position_type: 0, //位置类型,0表示地图内的xyz坐标, 1表示经纬度,
position: [122, 22, 22],
pitch:10,
rotation:20,
time:1
},callback)
入参:
position_type | //位置信息类型,0 表示xyz, 1表示经纬度⾼度 |
---|---|
position | //[x, y, z] or [经度, 纬度, 距地面高度] |
pitch | //倾斜角度 -90 ~ 90 |
rotation | //旋转角度 0~360 |
time | //飞行时间时间 |
callback 回调输出
{
result:"" //输出结果 成功:"ok", 失败 返回具体原因
}
参考效果图