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
8 changes: 6 additions & 2 deletions docs/api-reference/source.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,18 @@ When props change _shallowly_, the component will attempt to update the source.

Once a `<Source>` 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)