| | |
| | | this.$emit('close') |
| | | }, |
| | | flyToLocal(row){ |
| | | |
| | | console.log(row) |
| | | const position = Cesium.Cartesian3.fromDegrees(row.longitude,row.latitude, row.deviceHeight); |
| | | // rotationAngle = Cesium.Math.toRadians(row.face) || Cesium.Math.toRadians(0) |
| | | rotationAngle = Cesium.Math.toRadians(row.face) || Cesium.Math.toRadians(0) |
| | |
| | | verticalOrigin: Cesium.VerticalOrigin.BOTTOM, |
| | | horizontalOrigin: Cesium.HorizontalOrigin.CENTER, |
| | | font: '28px Helvetica', |
| | | outlineColor: Cesium.Color.BLUE, |
| | | outlineColor: Cesium.Color.RED, |
| | | outlineWidth: 3, |
| | | fillColor: Cesium.Color.fromCssColorString('#FFFFFF'), //44c3cc |
| | | text: row.deviceName, |
| | |
| | | position: groundPos, |
| | | point: { |
| | | pixelSize: 6, |
| | | color: Cesium.Color.BLUE |
| | | color: Cesium.Color.RED |
| | | }, |
| | | label: { |
| | | text: groundPoint.label || '', |
| | |
| | | positions: [airPos, groundPos], |
| | | width: 2, |
| | | material: new Cesium.PolylineDashMaterialProperty({ |
| | | color: Cesium.Color.BLUE, |
| | | color: Cesium.Color.RED, |
| | | dashLength: 8 |
| | | }) |
| | | } |
| | |
| | | message: '生成航线成功', |
| | | type: 'success' |
| | | }) |
| | | const link = document.createElement('a'); |
| | | link.href = res.msg; // 设置下载链接 |
| | | // link.download = 'filename.ext'; // 可选:指定文件名 |
| | | document.body.appendChild(link); // 将链接添加到 DOM |
| | | link.click(); // 模拟点击下载 |
| | | document.body.removeChild(link); // 下载后移除链接 |
| | | } |
| | | }) |
| | | }, |