| | |
| | | return polygon |
| | | }, |
| | | |
| | | // circleMarker :function (latlng,options) { |
| | | // const yuan = this.circleMarker(latlng,options) |
| | | // yuan.enableEdit(this.map).newShape(latlng) |
| | | // return yuan |
| | | // } |
| | | |
| | | // 🍂method startMarker(latlng: L.LatLng, options: hash): L.Marker |
| | | // Start adding a Marker. If `latlng` is given, the Marker will be shown first at this point. |
| | | // In any case, it will follow the user mouse, and will have a final `latlng` on next click (or touch). |
| | |
| | | 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) { |