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)