From 538d7313f98da3c304365f1c2b22c3e23d91db35 Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期一, 23 十月 2023 15:04:06 +0800
Subject: [PATCH] 版本更新,阴影分析,等高线添加

---
 src/assets/js/Map/temporaryTools.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/assets/js/Map/temporaryTools.js b/src/assets/js/Map/temporaryTools.js
index fdafaf3..21adfa3 100644
--- a/src/assets/js/Map/temporaryTools.js
+++ b/src/assets/js/Map/temporaryTools.js
@@ -143,11 +143,13 @@
                     res.near,
                     res.far
                 ),
-                outline: true,
+                outline: false,
                 outlineWidth: res.width,
+              
                 outlineColor: Cesium.Color.fromCssColorString(
                     res.outlineColor
                 ).withAlpha(res.outlineAlpha),
+                heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
             },
         });
     },
@@ -277,6 +279,7 @@
             var coord = this.setCartesianToEightFour(val[i])
             geom.push(coord.lng, coord.lat)
         }
+
         return {
             id: this.isedit ? res.id : (new Date()).getTime(),
             cnName: res.name,
@@ -290,7 +293,7 @@
             type: 'polygon',
             shpType: 'temporaryLayer',
             layerType: '澶氳竟褰�',
-            outline: res.outline != null ? res.outline : false,
+            outline: res.polygon.outline != null ? res.polygon.outline._value : false,
             width: res.polygon.outlineWidth ? res.polygon.outlineWidth._value : 1,
         }
     },

--
Gitblit v1.9.3