派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-21 c60e56e2b6ceb633c6b10f5dc52e3da88129ad70
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
  }
}