diff --git a/docs/modes/1.draw-mode.mdx b/docs/modes/1.draw-mode.mdx index 0dc4bf7..1f3c3c8 100644 --- a/docs/modes/1.draw-mode.mdx +++ b/docs/modes/1.draw-mode.mdx @@ -118,7 +118,7 @@ Here's a list of layer events you can listen to: | Event | Params | Description | Output | |:----------------|:-------|:----------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------| -| pm:vertexadded | `e` | Called when a new vertex is added. Payload includes the new vertex, it's marker, index, working layer and shape type. | `shape`, `workingLayer`, `marker`, `latlng` | +| pm:vertexadded | `e` | Called when a new vertex is added. Payload includes the new vertex, its marker, index, working layer and shape type. | `shape`, `workingLayer`, `marker`, `latlng` | | pm:snapdrag | `e` | Fired during a marker move/drag. Payload includes info about involved layers and snapping calculation. | `shape`, `distance`, `layer` = `workingLayer`, `marker`, `layerInteractedWith`, `segment`, `snapLatLng` | | pm:snap | `e` | Fired when a vertex is snapped. Payload is the same as in `snapdrag`. | `shape`, `distance`, `layer` = `workingLayer`, `marker`, `layerInteractedWith`, `segment`, `snapLatLng` | | pm:unsnap | `e` | Fired when a vertex is unsnapped. Payload is the same as in `snapdrag`. | `shape`, `distance`, `layer` = `workingLayer`, `marker`, `layerInteractedWith`, `segment`, `snapLatLng` | @@ -137,4 +137,4 @@ L.geoJSON(data, { ## Example - \ No newline at end of file +