吉安感知网项目-前端
罗广辉
2026-04-01 25e7b04012382b78120c400dcd907efc4dc01553
applications/drone-command/src/utils/cesium/publicCesium.js
@@ -171,7 +171,7 @@
      this.viewer.scene.screenSpaceCameraController.maximumZoomDistance = 4500000
      this.switchLayers(layerMode)
      this.switchFlatMode(flatMode)
      if (Cesium.FeatureDetection.supportsImageRenderingPixelated()) {
         let dpr = window.devicePixelRatio
         while (dpr >= 2.0) dpr /= 2.0 // 避免过高缩放导致模糊
@@ -187,7 +187,7 @@
      if (this.terrainProvider) return this.terrainProvider
      if (this.terrainLoading) return this.terrainLoading
      this.terrainLoading = Cesium.CesiumTerrainProvider.fromUrl(
         `${import.meta.env.VITE_APP_TERRAIN_URL}ja_terrain`,
         `${import.meta.env.VITE_APP_TERRAIN_URL}/360000`,
         {
            requestVertexNormals: true, // 启用地形法线增强立体感
            requestWaterMask: true, // 启用水体遮罩效果