BaoXs
2022-05-14 ef260dff5d38c36272a2ac97d40db70ab3f8c2cc
view/project/layerAnalysis.html
@@ -56,6 +56,7 @@
            border-radius: 6px;
            background-color: #999;
        }
        .layui-tree-btnGroup .layui-icon{
            display: inline-block;
            color:white
@@ -91,7 +92,7 @@
                    var data = obj.data.ext;  //获取当前点击的节点数据
                    var viewer = parent.viewer;
                    var Cesium = parent.Cesium;
                    if (type != 'BaseMap' && type != 'Terrain' && type != 'Plotting') {
                    if (type != 'BaseMap' && type != 'Terrain' && type != 'Plotting' && type != 'DDE') {
                        var model = undefined;
                        switch (obj.data.field) {
                            case "Primitive": {
@@ -184,6 +185,22 @@
                        }
                    }
                    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)                                 //绕经度线旋转
                            },
                        });
                    }
                }
                , oncheck: function (obj) {
                    if (isloading) {