From c7a16ca1b6fbcb0b82a4a09c2e75014624082e37 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期四, 27 三月 2025 22:45:48 +0800
Subject: [PATCH] 修复走航融合功能bug

---
 src/model/SatelliteGrid.js |   31 +++++++++++++++++++++++++++++--
 1 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/src/model/SatelliteGrid.js b/src/model/SatelliteGrid.js
index cb547e9..d6f3c8c 100644
--- a/src/model/SatelliteGrid.js
+++ b/src/model/SatelliteGrid.js
@@ -300,6 +300,14 @@
     });
   }
 
+  deleteTagGrid(tags) {
+    this.changeVisibility({ tags, showGridViews: false });
+    tags.forEach((t) => {
+      this.mapViewsMap.delete(t);
+      this.gridDataDetailMap.delete(t);
+    });
+  }
+
   // 璋冩暣鍚勭被鍦板浘瑕嗙洊鐗╃殑鍙鎬�
   changeVisibility({ tags = [], showGridViews, showDataTxt, showRankTxt }) {
     let { _mapViewsList } = this._getMapViews(...tags);
@@ -568,9 +576,8 @@
           eachheight,
           searchLength
         );
-        if (searchRes.find(v=> v.cellId == 1670)) {
+        if (searchRes.find((v) => v.cellId == 1670)) {
           console.log();
-          
         }
         searchRes.forEach((e) => {
           if (originCellIdList.indexOf(e.cellId) == -1) {
@@ -629,6 +636,26 @@
     return heatTag;
   }
 
+  drawHeatGrid2(tag, headGridDataDetailList) {
+    const heatTag = `heat-${tag}`;
+    if (this.mapViewsMap.has(heatTag)) {
+      this.changeVisibility({
+        tags: [heatTag],
+        showGridViews: true
+      });
+    } else {
+      this.drawTagGrid({
+        tag: heatTag,
+        data: headGridDataDetailList,
+        extData: {
+          name: `璧拌埅鐑姏鍥� - ${heatTag}`,
+          type: 2
+        }
+      });
+    }
+    return heatTag;
+  }
+
   search(gdd, width, height, eachwidth, eachheight, searchLength) {
     function getCellWidthRange(cellId, width, height) {
       const total = width * height;

--
Gitblit v1.9.3