From 98826e051486d61b8032c2da3a6d3ca733ef69a3 Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期五, 21 五月 2021 17:14:16 +0800 Subject: [PATCH] 管线查询条件BUG、附属设施在线下面的bug --- src/components/panel/topicSearch/SewersSelect/AnalysisChoose/PublicWay.js | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/PublicWay.js b/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/PublicWay.js index b55c90a..81573d0 100644 --- a/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/PublicWay.js +++ b/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/PublicWay.js @@ -1,5 +1,16 @@ -export default { - clickPopup () { - console.log('鍏叡鏂规硶') +export function selectPipeLine () { + window.map.on('click', this.selectClick) +} + +export function createFlowLine (param) { + const flowLine = window.L.polyline(param.points, param.option) + flowLine.addTo(window.map) + return flowLine +} + +export function linkClear (linkClear) { + if (this.linkClear != null) { + this.linkClear.remove() + this.linkClear = null } } -- Gitblit v1.8.0