月球大数据地理空间分析展示平台-【前端】-月球2期前端
Surpriseplus
2023-08-31 07941d4478a1d88b7e7d1051e4180cae9d643aa5
图层管理,属性定位优化
已添加1个文件
已修改1个文件
25 ■■■■■ 文件已修改
public/CIMSDK/Workers/image/location.png 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/Map/menuTool.js 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/CIMSDK/Workers/image/location.png
src/assets/js/Map/menuTool.js
@@ -590,10 +590,7 @@
        outlineColor: Cesium.Color.DODGERBLUE,
      }
    });
    window.Viewer.flyTo(locationPolygonEntity, {
      duration: 5,
      offset: new SmartEarth.Cesium.HeadingPitchRange(0.0, SmartEarth.Cesium.Math.toRadians(-20.0))
    });
    this.setViewerFlyTo(locationPolygonEntity)
  },
  setLocationPoint(res, name) {
    const position = window.Viewer.entities.add({
@@ -607,11 +604,20 @@
        scale: 5.0,
      },
    });
    window.Viewer.flyTo(position, {
      duration: 5,
      offset: new SmartEarth.Cesium.HeadingPitchRange(0.0, SmartEarth.Cesium.Math.toRadians(-20.0))
    this.setViewerFlyTo(position)
  },
  setViewerFlyTo(entity) {
    window.Viewer.flyTo(entity, {
      offset: {
        heading: Cesium.Math.toRadians(0.0),
        pitch: Cesium.Math.toRadians(-45),
        range: 40000
      }
    });
  },
  setLocationLine(res, name) {
    var position = [];
@@ -632,10 +638,7 @@
      },
    })
    window.Viewer.flyTo(polyline, {
      duration: 5,
      offset: new SmartEarth.Cesium.HeadingPitchRange(0.0, SmartEarth.Cesium.Math.toRadians(-20.0))
    });
    this.setViewerFlyTo(polyline)
  }
};