diff --git a/docs/api-reference/source.md b/docs/api-reference/source.md index 910549b39..e4aa9cd3d 100644 --- a/docs/api-reference/source.md +++ b/docs/api-reference/source.md @@ -102,14 +102,18 @@ When props change _shallowly_, the component will attempt to update the source. Once a `` is mounted, the following props should not change. If add/remove multiple JSX sources dynamically, make sure you use React's [key prop](https://reactjs.org/docs/lists-and-keys.html#keys) to give each element a stable identity. -#### `id`: string {#id} +#### `id`: string {#id} Unique identifier of the source. If not provided, a default id will be assigned. -#### `type`: string {#type} +#### `type`: string {#type} Required. Type of the source. +#### `generateId`: boolean {#generateId} + +Optional. Will generate IDs for each feature (useful for FeatureState handling) + ## Source [source.ts](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/source.ts)