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/views/historymode/HistoryMode.vue | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/views/historymode/HistoryMode.vue b/src/views/historymode/HistoryMode.vue index 9f9c573..d2a780e 100644 --- a/src/views/historymode/HistoryMode.vue +++ b/src/views/historymode/HistoryMode.vue @@ -19,6 +19,7 @@ <FactorLegend class="m-t-2" :factor="factorDatas.factor[factorType]" + @change="handleLegendTypeChange" ></FactorLegend> </el-row> <el-row class="historical" justify="center"> @@ -49,6 +50,7 @@ <script> import Layer from '@/utils/map/3dLayer'; +import mapLine from '@/utils/map/line'; import marks from '@/utils/map/marks'; import sector from '@/utils/map/sector'; import mapUtil from '@/utils/map/util'; @@ -133,19 +135,31 @@ this.sceneStore.searchScene(lng, lat); } }, + handleLegendTypeChange(value, done) { + if (value) { + this.factorDatas.resetRange(); + } else { + this.factorDatas.standardRange(); + } + done(); + this.draw(); + }, draw() { // 鍒锋柊鍥句緥 const factor = this.factorDatas.factor[this.factorType]; sector.clearSector(); + // this.drawRoadLine(factor); this.drawRoadMap(factor); this.drawMassMarks(factor); }, // 缁樺埗3D璧拌璺嚎鍥� drawRoadMap(e) { this.factorDatas.refreshHeight(this.factorType); - Layer.drawRoadMap(this.factorDatas, e, this.merge, this.setCenter); - // } + }, + drawRoadLine(e) { + this.factorDatas.refreshHeight(this.factorType); + mapLine.drawLine(this.factorDatas, e); }, drawMassMarks(e) { marks.drawMassMarks(this.factorDatas, e, (index) => { -- Gitblit v1.9.3