From 419fe50acad4674f50c6639b3ec7ccbcaf2cbf44 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 20 三月 2025 17:43:49 +0800 Subject: [PATCH] 走航融合(待完成) --- src/views/historymode/HistoryMode.vue | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/views/historymode/HistoryMode.vue b/src/views/historymode/HistoryMode.vue index b63cf49..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"> @@ -134,21 +135,30 @@ 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.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) { -- Gitblit v1.9.3