From f21ba60dd8cd2f9f021d579fe52325abd37f4af1 Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期三, 10 三月 2021 17:27:34 +0800
Subject: [PATCH] 修改已知问题

---
 src/components/plugin/Editable.js |   23 ++++++++++-------------
 1 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/src/components/plugin/Editable.js b/src/components/plugin/Editable.js
index 943fdcd..bd287f5 100644
--- a/src/components/plugin/Editable.js
+++ b/src/components/plugin/Editable.js
@@ -298,7 +298,6 @@
       connectCreatedToMap: function (layer) {
         return this.featuresLayer.addLayer(layer)
       },
-
       // 馃崅method startPolyline(latlng: L.LatLng, options: hash): L.Polyline
       // Start drawing a Polyline. If `latlng` is given, a first point will be added. In any case, continuing on user click.
       // If `options` is given, it will be passed to the Polyline class constructor.
@@ -306,6 +305,16 @@
         const line = this.createPolyline([], options)
         line.enableEdit(this.map).newShape(latlng)
         return line
+      },
+      // 绠ご鏍囩粯
+      startPolylineArrow: function (latlng, options) {
+        const lineArrow = this.createPolyline([], {
+          color: 'black',
+          weight: 3,
+          opacity: 1.0
+        })
+        lineArrow.enableEdit(this.map).newShape(latlng)
+        return lineArrow
       },
 
       // 馃崅method startPolygon(latlng: L.LatLng, options: hash): L.Polygon
@@ -347,18 +356,6 @@
         const circle = this.createCircle(latlng, options)
         circle.enableEdit(this.map).startDrawing()
         return circle
-      },
-      // 鏂囧瓧鏍囨敞
-      startText: function (latlng, options) {
-        latlng = latlng || this.map.getCenter().clone()
-        const markerBuilding = this.createMarker(latlng, options).bindTooltip('闂鏍囨敞鍐呭', {
-          offset: [0, 0],
-          permanent: true,
-          direction: 'top',
-          className: 'anim-tooltip'
-        })
-        markerBuilding.enableEdit(this.map).startDrawing()
-        return markerBuilding
       },
 
       // 鍥炬爣鏍囨敞

--
Gitblit v1.8.0