From 510ae9f8768cd16c39fde70e1ae40b164500d5d5 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 27 Apr 2022 09:48:32 +0800
Subject: [PATCH] 文件更替

---
 src/components/map/index.vue |   24 ++++--------------------
 1 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index d87d089..7f30efb 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -1,18 +1,6 @@
 /* eslint-disable camelcase */
 <template>
     <div id="viewer-container" style="height: 100%; width: 100%" @click="mapClick($event)">
-        <video
-            id="video"
-            style="position: fixed; visibility: hidden"
-            muted
-            autoplay
-            loop
-            crossorigin
-            controls
-        >
-            <source src="http://dc.dvgis.cn/examples/data/demo.mp4" type="video/mp4" />
-        </video>
-
         <div
             style="
                 position: fixed;
@@ -241,13 +229,9 @@
                         preserveDrawingBuffer: true
                     }
                 }
-            }).setOptions({
-                globe: {
-                    baseColor: new global.DC.Color(1, 1, 1, 1)
-                }
             })
 
-            console.log(window.devicePixelRatio)
+            global.viewer.scene.globe.baseColor = global.DC.Namespace.Cesium.Color.WHITE
 
             if (global.DC.Namespace.Cesium.FeatureDetection.supportsImageRenderingPixelated()) { // 判断是否支持图像渲染像素化处理
                 global.viewer.setOptions({
@@ -298,7 +282,7 @@
 
             global.eagleViewer.imageryLayers.addImageryProvider(
                 new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({
-                    url: 'http://t{s}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=9ae78c51a0a28f06444d541148496e36',
+                    url: 'http://t{s}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0',
                     subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
                     format: 'image/jpeg',
                     show: true,
@@ -308,7 +292,7 @@
 
             global.eagleViewer.imageryLayers.addImageryProvider(
                 new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({
-                    url: 'http://t{s}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=9ae78c51a0a28f06444d541148496e36',
+                    url: 'http://t{s}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0',
                     subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
                     format: 'image/jpeg',
                     show: true,
@@ -462,7 +446,7 @@
 
             that.$refs.leftNav.initialize()
 
-            // const key = '0f7c1d161d7352116a21aacf0e9f44c1'
+            // const key = 'e9533f5acb2ac470b07f406a4d24b4f0'
             // const vec = global.DC.ImageryLayerFactory.createTdtImageryLayer({
             //     key
             // })

--
Gitblit v1.9.3