赞
踩
//创建相机跟随
createCameraFollow(line) {//var p1 = [
//[[DtoR(-122.174699), DtoR(37.433888), 0], [ 2.0991215, 0.5497211,50] ]
//];
if (line.tgtIp === '' || line.srcIp ===line.tgtIp) {return}var p1 =[
[
[this.DtoR(line.srcIpLon * 1), this.DtoR(line.srcIpLat * 1), 0],
[this.DtoR(line.clueLon * 1), this.DtoR(line.clueLat * 1), 0]
]
];//获取飞行距离
//let distance = this.getDistance(p1[0])
let parms =[this.RtoD(p1[0][0][0]),this.RtoD(p1[0][0][1]),this.RtoD(p1[0][1][0]),this.RtoD(p1[0][1][1]),
]
let distance= this.getFlatternDistance(...parms)//获取飞线路径
let flyLine = this.getFlyLine(this._earth, p1)//添加管道
this.createCylinder(this._earth, flyLine)//摄像机贴线飞行
setTimeout(() =>{this.cameraFly(flyLine, distance)
},100)
},//摄像机贴线飞行
cameraFly (flyL
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。