派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-03-16 c94159caa730e2809d790ab5fd7b77cd47c725dc
src/components/plugin/MakeTation.js
@@ -2,7 +2,7 @@
// 添加文字标注
var TextAnnotation = {
  points: [],
  color: 'yellow',
  color: '',
  L: null,
  map: null,
  layers: null,
@@ -60,7 +60,7 @@
// 添加 点 的标注
let pointAnnotation = {
  points: [],
  color: 'yellow',
  color: '',
  L: null,
  map: null,
  layers: null,
@@ -78,7 +78,6 @@
  click: function (e) {
    let marker = L.marker(e.latlng)
    marker.addTo(pointAnnotation.map)
    // pointAnnotation.map.panBy(L.point(e.latlng))
  },
  dblclick: function (e) {
    pointAnnotation.map.off('click', pointAnnotation.click).off('dblclick', pointAnnotation.dblclick)