派生自 wuyushui/SewerAndRainNetwork

chenyabin
2021-04-27 4f35a8b56c12315c82fd5bd136f32da2dcadc5e2
src/components/panel/topicSearch/SewersSelect/AnalysisChoose/DrawLine.js
@@ -1,5 +1,5 @@
import L from 'leaflet'
import eventBus from '@/eventBus'
import eventBus from '../../../../../eventBus'
class DrawLine {
  constructor (map) {
@@ -38,11 +38,11 @@
    }
    dbClick = (e) => {
      console.log('双击结束', e)
      // console.log('双击结束', e)
      this.polyline.addTo(this.layers)
      // this.close(e.latlng);
      this.map.off('click', this.click).off('mousemove', this.mousemove).off('dblclick', this.dbClick)
      console.log(this.points)
      // console.log(this.points)
      eventBus.$emit('draw-hdm-line', this.points)
    }