Riku
2025-03-27 c7a16ca1b6fbcb0b82a4a09c2e75014624082e37
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;