当前位置:   article > 正文

cesium画飞线_Cesium+earthSD实现相机飞行动画

earth-flyline

//创建相机跟随

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/665461
推荐阅读
相关标签
  

闽ICP备14008679号