绕点旋转
框架支持指定中心点并绕其进行旋转
说明
INFO
支持设置相机角度、距离和旋转速度
代码实例
ts
let map: any
LarkExplorer.ready({
baseUrl: './dist/resources/',
}).then(()=>{
map = new LarkExplorer.Map('map')
})
let roundObj: any
// 开始旋转
const start = () => {
end()
const pos = { x: 120, y: 29, z: 100 }
roundObj = map.Navigation.aroundPoint(pos, -30, 15, 50000)
roundObj.start()
}
// 停止旋转
const end = () => {
roundObj && roundObj.stop()
}
运行效果
更多示例