派生自 wuyushui/SewerAndRainNetwork

chenyabin
2021-04-20 7df2d3d0fa20cd1eb58009aaf6e1b3c8712a58a2
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()