| | |
| | | cameraT:0.0, |
| | | pointGround: { lon: 0, lat: 0, height: 0 }, |
| | | pointFly: { lon: 0, lat: 0, height: 0 }, |
| | | rowData:null |
| | | } |
| | | }, |
| | | mounted(){ |
| | |
| | | creatPin(id, position, font, color, viewer) { |
| | | let pinBuilder = new Cesium.PinBuilder(); |
| | | let addPin = viewer.entities.getById(id); |
| | | console.log(addPin) |
| | | if (addPin == undefined) { |
| | | viewer.entities.add({ |
| | | id: id, |
| | |
| | | const gure = Cesium.Cartesian3.distance(point1, point2) |
| | | this.betweenDistance = gure |
| | | } |
| | | if(this.rowData) { |
| | | this.pointGround = { |
| | | lon:this.rowData.longitude, |
| | | lat:this.rowData.latitude, |
| | | height:this.rowData.height |
| | | } |
| | | } |
| | | this.pointFly = { |
| | | lon: lon, |
| | | lat: lat, |
| | |
| | | label: `空中点${idx}`, |
| | | longitude: Cesium.Math.toDegrees(aerialPos.longitude), |
| | | latitude: Cesium.Math.toDegrees(aerialPos.latitude), |
| | | height: aerialPos.height |
| | | height: aerialPos.height, |
| | | heading:Cesium.Math.toDegrees(viewerC.camera.heading), |
| | | pitch:Cesium.Math.toDegrees(viewerC.camera.pitch) |
| | | } |
| | | ] |
| | | }; |
| | |
| | | return Math.asin(directionLocal.z); // z轴向上 |
| | | }, |
| | | DealVisualCone(data,node){ |
| | | this.rowData = data |
| | | console.log(data) |
| | | this.pointGround = { |
| | | lon:data.children[0].longitude, |
| | | lat:data.children[0].latitude, |
| | | height:data.children[0].height |
| | | } |
| | | this.pointFly = { |
| | | lon:data.longitude, |
| | | lat:data.latitude, |
| | | height:data.height |
| | | } |
| | | if(data.children && data.children?.length > 0) { |
| | | preVideoScopePrimitiveArrTie.map((item)=>{ |
| | | if(item.name != data.children[0].label){ |