From 42f42dc88214f283b43c422f37e10ab45c5c5578 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 12 三月 2025 17:32:13 +0800
Subject: [PATCH] 1. 新增绘图模式的切换 2. 新增行政区划的切换展示

---
 src/utils/map/3dLayer.js |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/utils/map/3dLayer.js b/src/utils/map/3dLayer.js
index 5bf559a..9720c1a 100644
--- a/src/utils/map/3dLayer.js
+++ b/src/utils/map/3dLayer.js
@@ -96,7 +96,7 @@
   const coors = fDatas.coors_GD;
   const heights = factor.heights;
   const colors = factor.colors;
-  const bColor = factor.bottomColor;
+  // const bColor = factor.bottomColor;
   const bColors = factor.bottomColors;
 
   // eslint-disable-next-line no-undef
@@ -167,15 +167,20 @@
 }
 
 export default {
+  clear() {
+    if (_cylinder != undefined) {
+      object3Dlayer.remove(_cylinder);
+    }
+  },
+
   drawMesh: drawMesh,
   /**
    * 缁樺埗3D璧拌璺嚎鍥�
    * @param fDatas 瀹屾暣鐩戞祴鏁版嵁
    * @param factor 褰撳墠灞曠ず鐨勭洃娴嬪洜瀛愬璞�
    * @param merge 鏄惁鍜屼箣鍓嶇粯鍒剁殑鍥惧舰鍚堝苟
-   * @param setCenter 闀滃ご鏄惁鑷姩绉诲姩鑷冲浘褰腑蹇�
    */
-  drawRoadMap(fDatas, factor, merge, setCenter) {
+  drawRoadMap(fDatas, factor, merge) {
     const lnglats_GD = fDatas.lnglats_GD;
     const heights = factor.heights;
 

--
Gitblit v1.9.3