From c60e56e2b6ceb633c6b10f5dc52e3da88129ad70 Mon Sep 17 00:00:00 2001
From: 陈泽平 <chenzeping>
Date: 星期五, 21 五月 2021 17:35:41 +0800
Subject: [PATCH] 管线分析相关功能问题修改

---
 src/components/panel/topicSearch/SewersSelect/AnalysisChoose/PublicWay.js |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/PublicWay.js b/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/PublicWay.js
index 933302b..72a716e 100644
--- a/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/PublicWay.js
+++ b/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/PublicWay.js
@@ -1,5 +1,26 @@
+export function selectPipeLine () {
+  window.map.on('click', this.selectClick)
+  window.mapManager.clickDialogSwitch = true
+}
+
+// 鍦板浘涓婄偣鍑诲洖璋�
+export function selectClick (e) {
+  window.map.off('click', this.selectClick)
+  const point = [e.latlng.lng, e.latlng.lat]
+  this.getPipeLine(point)
+  // this.getPipeLine(point, this.linkType)
+  // window.mapManager.clickDialogSwitch = true
+}
+
 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