| | |
| | | border-radius: 6px; |
| | | background-color: #999; |
| | | } |
| | | |
| | | .layui-tree-btnGroup .layui-icon{ |
| | | display: inline-block; |
| | | color:white |
| | |
| | | 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": { |
| | |
| | | } |
| | | |
| | | } |
| | | 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) { |