From ec4d5c1827487f4c901b69bd9eae58e111e82b32 Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期四, 20 五月 2021 18:05:25 +0800 Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop --- src/components/panel/topicSearch/SewersSelect/AnalysisChoose/DrawLine.js | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/DrawLine.js b/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/DrawLine.js index be2a119..386bdb3 100644 --- a/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/DrawLine.js +++ b/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) { @@ -31,18 +31,15 @@ mousemove = (e) => { this.points.push(e.latlng) if (this.polyline) { this.map.removeLayer(this.polyline) } - this.polyline = L.polyline(this.points, { showMeasurements: true, color: 'red' }) + this.polyline = L.polyline(this.points, { showMeasurements: false, color: 'red' }) this.polyline.addTo(this.layers) this.layers.addTo(this.map) this.points.pop() } dbClick = (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) eventBus.$emit('draw-hdm-line', this.points) } -- Gitblit v1.8.0