无人机管理后台前端(已迁走)
张含笑
2025-10-31 f299c76bccf93f4b1f5efcd01dd0563e0b6ed893
src/views/layerManagement/index.vue
@@ -15,6 +15,7 @@
            !layerParams.addNest &&
            !layerParams.editNest &&
            !layerParams.addFolder &&
            !layerParams.editFolder &&
            activeType !== '2'
          "
          @update:coverData="handleCoverDataUpdate"
@@ -126,9 +127,9 @@
  viewer.entities.removeAll();
  layerParams.value.editDetailData = val;
  drawPolygonExample.editThePatch(true);
    drawPolygonExample.drawTheArea(true);
  const positions = parseGeoDataToPositions(val.geo_data, val.altitude);
  if (positions.length < 3) return; // 少于3个点无法构成多边形
  drawPolygonExample.drawTheArea(true);
  drawPolygonExample.initPolygon(viewer, positions, true);
};
// 编辑文件夹
@@ -251,8 +252,6 @@
// 初始化绘制工具实例
const drawPolygonExample = new DrawPolygon();
// 地图初始化
// 地图初始化
const initMap = () => {
  publicCesiumInstance = new PublicCesium({