月球大数据地理空间分析展示平台-【前端】-月球2期前端
Surpriseplus
2023-07-03 a847f035b36c1005119d7f88d40f41849017ff47
src/assets/js/Map/menuTool.js
@@ -100,6 +100,7 @@
  },
  // 矩形正方形
  createRectangle(entity) {
    this.delRectangle();
    var west = Cesium.Math.toDegrees(
      entity.rectangle._coordinates.getValue().west
    ); // 根据弧度获取到经度
@@ -148,6 +149,11 @@
    this.squareOjb.push(e);
    // earthCtrl.Creator.SimpleGraphic.clear();
    Viewer.entities.remove(entity);
    debugger
    window.functionForJs({
      type: 'exportMap',
      value: true
    })
  },
  // 创建图形
  createSimpleGraphic(type, scene) {
@@ -166,7 +172,7 @@
  },
  //坐标定位
  Coordposition() {},
  Coordposition() { },
  //影像对比
  CurtainContrast() {
    this.toolMenu = earthCtrl.analysis.createCurtainContrast({
@@ -181,7 +187,7 @@
  },
  //垂直高度
  verticalHeight() {
    earthCtrl.measure.measureHeight(function (e) {});
    earthCtrl.measure.measureHeight(function (e) { });
  },
  //高程测量
  heightMeasure() {
@@ -190,11 +196,11 @@
      polyline: Cesium.Color.fromCssColorString("#ffff0050"),
      polygon: Cesium.Color.fromCssColorString("#ffff0050"),
    };
    earthCtrl.Analysis.altitude(colorAll, () => {});
    earthCtrl.Analysis.altitude(colorAll, () => { });
  },
  //平面面积
  planeDistance() {
    earthCtrl.analysis.getPlaneArea(function (e) {});
    earthCtrl.analysis.getPlaneArea(function (e) { });
  },
  //表面距离
  surfaceDistance() {
@@ -278,6 +284,6 @@
      this.toolMenu = null;
    }
  },
  clearLeftTools(res) {},
  clearLeftTools(res) { },
};
export default menuTool;