From 8c30835a41d59e19183434f5f17e6b45b9920f38 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 08 Apr 2022 16:47:59 +0800
Subject: [PATCH] 所有图片资源更换等

---
 src/components/map/index.vue |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index 5421c65..be40e6c 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -241,6 +241,18 @@
                     }
                 }
             })
+
+            console.log(window.devicePixelRatio)
+
+            if (global.DC.Namespace.Cesium.FeatureDetection.supportsImageRenderingPixelated()) { // 判断是否支持图像渲染像素化处理
+                global.viewer.setOptions({
+                    resolutionScale: window.devicePixelRatio
+                })
+            }
+
+            // 是否开启抗锯齿
+            // global.viewer.scene.fxaa = true
+            // global.viewer.scene.postProcessStages.fxaa.enabled = true
             // .setOptions({
             //     // showAtmosphere: false, 大气层
             //     showMoon: true, // 月亮

--
Gitblit v1.9.3