From 5f44d21b3921abc88506a7ec46b3fe6f078664aa Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 14 三月 2025 15:33:24 +0800
Subject: [PATCH] 新增走航融合功能(初版)

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

diff --git a/src/utils/map/3dLayer.js b/src/utils/map/3dLayer.js
index 5bf559a..01ff1d2 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,21 @@
 }
 
 export default {
+  clear() {
+    map.off('zoomend', onMapZoom);
+    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