Skip to content

Commit 9f27776

Browse files
Update README.md
Co-authored-by: Sai Chandu Naru <[email protected]>
1 parent 633ac11 commit 9f27776

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ Install with npm
2424
| Hook returned methods | Returns | Description |
2525
|---------------------------------------|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
2626
| drawing() | boolean | Return true if any drawing action is ongoing. |
27-
| stopDrawing() | | When you need to stop any ongoing drawing, without needing to know which editor is active. |
28-
| commitDrawing() | | When you need to commit any ongoing drawing, without needing to know which editor is active. |
27+
| stopDrawing() | void | When you need to stop any ongoing drawing, without needing to know which editor is active. |
28+
| commitDrawing() | void | When you need to commit any ongoing drawing, without needing to know which editor is active. |
2929
| startPolyline(<L.LatLng> latlng, <hash> options) | 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. |
3030
| startPolygon(<L.LatLng> latlng, <hash> options) | L.Polygon | Start drawing a Polygon. 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 Polygon class constructor. |
3131
| startMarker(<L.LatLng> latlng, <hash> options) | 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). If options is given, it will be passed to the Marker class constructor. |
3232
| startRectangle(<L.LatLng> latlng, <hash> options) | L.Rectangle | Start drawing a Rectangle. If latlng is given, the Rectangle anchor will be added. In any case, continuing on user drag. If options is given, it will be passed to the Rectangle class constructor. |
3333
| startCircle(<L.LatLng> latlng, <hash> options) | L.Circle | Start drawing a Circle. If latlng is given, the Circle anchor will be added. In any case, continuing on user drag. If options is given, it will be passed to the Circle class constructor. |
34+
| enableEdit(feature: L.Layer) | void | Enable editing, by creating an editor if not existing, and then calling enable on it. |
35+
| disableEdit(feature: L.Layer) | void | Disable editing, also remove the editor property reference. |
3436

3537

3638
| Events |
@@ -39,9 +41,9 @@ Install with npm
3941
| onEnable |
4042
| onDisable |
4143
| onEditing |
42-
| onDragstart |
44+
| onDragStart |
4345
| onDrag |
44-
| onDragend |
46+
| onDragEnd |
4547
| onDrawingStart |
4648
| onDrawingEnd |
4749
| onDrawingCancel |

0 commit comments

Comments
 (0)