Skip to content

Commit

Permalink
Document the data property passed to onUpdate listeners (uber#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub authored May 7, 2020
1 parent b185a4f commit 1516d93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api-reference/react-map-gl-draw/react-map-gl-draw.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ And an advanced
- `mapCoords`: map coordinates of the clicked position.

- `onUpdate` (Function, Optional) - callback when any feature is updated. Receives an object containing the following parameters
- `features` (Feature[]) - the updated list of GeoJSON features.
- `data` (Feature[]) - the updated list of GeoJSON features.
- `editType` (String) - `addFeature`, `addPosition`, `finishMovePosition`
- `editContext` (Array) - list of edit objects, depend on `editType`, each object may contain `featureIndexes`, `editHandleIndexes`, `screenCoords`, `mapCoords`.

Expand Down
2 changes: 1 addition & 1 deletion modules/react-map-gl-draw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ And an advanced
- `mapCoords`: map coordinates of the clicked position.

- `onUpdate` (Function, Optional) - callback when any feature is updated. Receives an object containing the following parameters
- `features` (Feature[]) - the updated list of GeoJSON features.
- `data` (Feature[]) - the updated list of GeoJSON features.
- `editType` (String) - `addFeature`, `addPosition`, `finishMovePosition`
- `editContext` (Array) - list of edit objects, depend on `editType`, each object may contain `featureIndexes`, `editHandleIndexes`, `screenCoords`, `mapCoords`.

Expand Down

0 comments on commit 1516d93

Please sign in to comment.