无人机管理后台前端(已迁走)
罗广辉
2025-09-06 c2e29fdee2d0e664961a84e95adf3882efbaf67a
src/utils/cesium/publicCesium.js
@@ -94,7 +94,7 @@
         terrain = false,
         layerMode = 0,
         contour = true,
         // flyToContour = false,
         flyToContour = false,
         multiple = 1.4,
         dockOptions = {},
@@ -158,8 +158,8 @@
      this.viewer.scene.screenSpaceCameraController.maximumZoomDistance = 4500000
      this.switchLayers(layerMode)
      this.switchFlatMode(flatMode)
      // this.switchContour(contour)
      // flyToContour && this.flyToContour(contour)
      this.switchContour(contour)
      flyToContour && this.flyToContour(contour)
   }
   getViewer () {
@@ -202,21 +202,22 @@
   }
   setShowDock (sns) {
      // this.boundary?.setShowDock(sns)
      this.boundary?.setShowDock(sns)
   }
   // 切换轮廓显示
   // async switchContour (open) {
   //    if (open) {
   //       await this.boundary?.openContour()
   //    } else {
   //       this.boundary?.closeContour()
   //    }
   // }
   async switchContour (open) {
      if (open) {
         await this.boundary?.openContour()
      } else {
         this.boundary?.closeContour()
      }
   }
   // // 飞向轮廓居中
   // flyToContour () {
   //    this.boundary?.flyToBoundary()
   // }
   flyToContour () {
      this.boundary?.flyToBoundary()
   }
   // 飞行 flyto
   flyTo (pointOption, time = 4, height = 3000, orientation = {}, complete = () => { }) {