From e3bc212043d67e74a9d6c9402aefe1250005f693 Mon Sep 17 00:00:00 2001
From: Jin Lei <jinlei_182@163.com>
Date: 星期三, 24 一月 2024 23:15:31 +0800
Subject: [PATCH] [清晰度]修改二维底图清晰度

---
 src/utils/map.js                                 |    2 ++
 src/components/viewer.vue                        |    3 +++
 src/components/sideMenu/layerMenu/layerPanel.vue |    4 ++++
 3 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/components/sideMenu/layerMenu/layerPanel.vue b/src/components/sideMenu/layerMenu/layerPanel.vue
index 014d927..f4adf38 100644
--- a/src/components/sideMenu/layerMenu/layerPanel.vue
+++ b/src/components/sideMenu/layerMenu/layerPanel.vue
@@ -306,8 +306,10 @@
     handleEMapClick(result, index) {
       // 璁剧疆鐩告満
       if (result.name == "浜岀淮鍦板浘") {
+        window.Viewer.scene.globe.maximumScreenSpaceError = 4/3;
         this.changeLayerView(25000, false);
       } else if (result.name == "褰卞儚鍦板浘") {
+        window.Viewer.scene.globe.maximumScreenSpaceError = 4/3;
         this.changeLayerView(50000, false);
       }
       // 鍒囨崲鍥惧眰
@@ -338,8 +340,10 @@
     handleSMapClick(result, index) {
       // 璁剧疆鐩告満
       if (result.name == "3D鍩庡競") {
+        window.Viewer.scene.globe.maximumScreenSpaceError = 2;
         this.changeLayerView(45000, true);
       } else if (result.name == "涓夌淮妯″瀷") {
+        window.Viewer.scene.globe.maximumScreenSpaceError = 2;
         this.changeLayerView(80000, true);
       }
       // 鍒囨崲鍥惧眰
diff --git a/src/components/viewer.vue b/src/components/viewer.vue
index a40f629..643c8dc 100644
--- a/src/components/viewer.vue
+++ b/src/components/viewer.vue
@@ -168,6 +168,9 @@
       );
       window.Viewer = sgworld._Viewer;
       Viewer.shadows = false;
+      viewer.scene.fxaa = false;
+      viewer.scene.postProcessStages.fxaa.enabled = false;
+      window.Viewer.scene.globe.maximumScreenSpaceError = 4/3;
       that.showBottom();
       window.Viewer.scene.screenSpaceCameraController.minimumZoomDistance = 100; //鐩告満鐨勯珮搴︾殑鏈�灏忓��
       // window.Viewer.scene.screenSpaceCameraController.maximumZoomDistance = 38000; //鐩告満楂樺害鐨勬渶澶у��
diff --git a/src/utils/map.js b/src/utils/map.js
index 280127f..6d20478 100644
--- a/src/utils/map.js
+++ b/src/utils/map.js
@@ -917,6 +917,8 @@
                         level: treeNode.Level,
                         minimumLevel: treeNode.minimumLevel,
                         maximumLevel: treeNode.maximumLevel,
+                        minificationFilter:Cesium.TextureMinificationFilter.NEAREST_MIPMAP_LINEAR,
+                        magnificationFilter:Cesium.TextureMinificationFilter.NEAREST_MIPMAP_LINEAR,
                         tilingScheme:
                             treeNode.tileType === "Geo"
                                 ? new Cesium.GeographicTilingScheme()

--
Gitblit v1.9.3