riku
2025-09-11 307b17ef15c73a071912a262834f2a5f68e1fa87
src/views/historymode/HistoryMode.vue
@@ -55,7 +55,7 @@
    <SourceTrace
      class="source-trace"
      v-model:factorType="factorType"
      direction="right"
      direction="left"
      mode="history"
      :mission-code="missionCode"
    ></SourceTrace>
@@ -126,7 +126,7 @@
    factorType(nValue, oValue) {
      if (nValue != oValue && this.status == 0) {
        Layer.clear();
        this.draw();
        this.draw(true);
        // this.drawHighlightPollution();
      }
    }
@@ -169,13 +169,17 @@
      done();
      this.draw();
    },
    draw() {
    draw(notSetBound) {
      // 刷新图例
      const factor = this.factorDatas.factor[this.factorType];
      sector.clearSector();
      // this.drawRoadLine(factor);
      this.drawRoadMap(factor);
      this.drawMassMarks(factor);
      // 调整地图视角
      if (!notSetBound) {
        mapUtil.setBound(this.factorDatas.lnglats_GD);
      }
    },
    // 绘制3D走行路线图
    drawRoadMap(e) {
@@ -190,8 +194,6 @@
      marks.drawMassMarks(this.factorDatas, e, (index) => {
        this.handelIndexChange(index);
      });
      // 调整地图视角
      mapUtil.setBound(this.factorDatas.lnglats_GD);
    },
    drawSector(index) {
      // 1. 绘制新扇形区域