派生自 wuyushui/SewerAndRainNetwork

chenyabin
2021-04-25 1f5d63f62c4a1b1d73927d276b116d79bece8566
src/components/panel/topicSearch/SewersSelect/AnalysisChoose/DrawLine.js
@@ -1,6 +1,5 @@
import L from 'leaflet'
// import eventBus from "@/components/leaflet/app/eventBus"
import eventBus from '@components/panel/topicSearch/SewersSelect/AnalysisChoose/eventBus'
import eventBus from '@/eventBus'
class DrawLine {
  constructor (map) {
@@ -49,7 +48,6 @@
    destory () {
      if (this.polyline) { this.map.removeLayer(this.polyline) }
      if (this.marker) { this.marker.remove() }
      this.points = []
      this.layers.clearLayers()