From 1c9a5773b3f3061d2d5226f6653645cd1bfc9816 Mon Sep 17 00:00:00 2001 From: wangqi <magical1908@outlook.com> Date: 星期二, 16 三月 2021 16:36:26 +0800 Subject: [PATCH] 工具-地图,地形图 --- src/components/plugin/Editable.js | 19 +------------------ 1 files changed, 1 insertions(+), 18 deletions(-) diff --git a/src/components/plugin/Editable.js b/src/components/plugin/Editable.js index bd287f5..79fc3ad 100644 --- a/src/components/plugin/Editable.js +++ b/src/components/plugin/Editable.js @@ -301,20 +301,11 @@ // 馃崅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. + // 鐢荤嚎 startPolyline: function (latlng, options) { 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 @@ -356,14 +347,6 @@ const circle = this.createCircle(latlng, options) circle.enableEdit(this.map).startDrawing() return circle - }, - - // 鍥炬爣鏍囨敞 - startIcon: function (latlng, options) { - latlng = latlng || this.map.getCenter().clone() - const icon = this.createMarker(latlng, options) - icon.enableEdit(this.map).startDrawing() - return icon }, startHole: function (editor, latlng) { -- Gitblit v1.8.0