You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/API.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ All of the following options are optional.
36
36
-`modes`, Object: over ride the default modes with your own. `MapboxDraw.modes` can be used to see the default values. More information on custom modes [can be found here](https://github.com/mapbox/mapbox-gl-draw/blob/main/docs/MODES.md).
37
37
-`defaultMode`, String (default: `'simple_select'`): the mode (from `modes`) that user will first land in.
38
38
-`userProperties`, boolean (default: `false`): properties of a feature will also be available for styling and prefixed with `user_`, e.g., `['==', 'user_custom_label', 'Example']`
39
+
-`suppressAPIEvents`, boolean (default: `true`): Whether or not to emit events when calling Draw API methods. If `false`, events will be emitted.
39
40
40
41
## Modes
41
42
@@ -449,7 +450,7 @@ This event will *not* fire when a feature is created or deleted. To track those
449
450
The event data is an object with the following shape:
450
451
451
452
```js
452
-
{
453
+
{
453
454
features:Array<Feature>, // Array of features that were updated
454
455
action: string // Name of the action that triggered the update
455
456
}
@@ -493,7 +494,7 @@ This event is fired just after the current mode stops and just before the next m
493
494
The event data is an object with the following shape:
494
495
495
496
```js
496
-
{
497
+
{
497
498
mode: string // The next mode, i.e. the mode that Draw is changing to
0 commit comments