BaoXs
2022-05-16 0edbadbfd1c973e83cc5ced6125a33d7417ca24d
合并代码
1个文件已修改
24 ■■■■ 已修改文件
view/project/layerAnalysis.html 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
view/project/layerAnalysis.html
@@ -185,21 +185,23 @@
                        }
                    }
                    else if (type == 'DDE') {
                    else if (type == 'DDE') {
                        var lon, lat, alt;
                        lon = obj.data.lon;
                        lat = obj.data.lat;
                        alt = obj.data.altitude;
                        console.log(lon,lat,alt);
                        let flyPromise = viewer.camera.flyTo({
                            duration: 3,
                            destination: Cesium.Cartesian3.fromDegrees(Number(lon), Number(lat), alt),
                            orientation: {
                                heading: Cesium.Math.toRadians(0),                          //绕垂直于地心的轴旋转
                                pitch: Cesium.Math.toRadians(-90),      //绕纬度线旋转
                                roll: Cesium.Math.toRadians(0)                                 //绕经度线旋转
                            },
                        });
                        console.log(lon, lat, alt);
                        if (lon != undefined && lat != undefined && alt != undefined) {
                            let flyPromise = viewer.camera.flyTo({
                                duration: 3,
                                destination: Cesium.Cartesian3.fromDegrees(Number(lon), Number(lat), alt),
                                orientation: {
                                    heading: Cesium.Math.toRadians(0),                          //绕垂直于地心的轴旋转
                                    pitch: Cesium.Math.toRadians(-90),      //绕纬度线旋转
                                    roll: Cesium.Math.toRadians(0)                                 //绕经度线旋转
                                },
                            });
                        }
                    }
                }
                , oncheck: function (obj) {