From 0fb4132f6d01bfd5de4e3dddfc27f1c2fe55ddcc Mon Sep 17 00:00:00 2001 From: wangqi <magical1908@outlook.com> Date: 星期二, 16 三月 2021 16:16:43 +0800 Subject: [PATCH] 工具-地图,地形图 --- src/components/plugin/Editable.js | 22 +--------------------- 1 files changed, 1 insertions(+), 21 deletions(-) diff --git a/src/components/plugin/Editable.js b/src/components/plugin/Editable.js index 943fdcd..79fc3ad 100644 --- a/src/components/plugin/Editable.js +++ b/src/components/plugin/Editable.js @@ -298,10 +298,10 @@ 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. + // 鐢荤嚎 startPolyline: function (latlng, options) { const line = this.createPolyline([], options) line.enableEdit(this.map).newShape(latlng) @@ -347,26 +347,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 - }, - - // 鍥炬爣鏍囨敞 - 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