Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/modes/1.draw-mode.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand All @@ -137,4 +137,4 @@ L.geoJSON(data, {

## Example

<Draw />
<Draw />