Skip to content

Commit

Permalink
removeAllDataLayers
Browse files Browse the repository at this point in the history
  • Loading branch information
tibotiber committed Apr 12, 2024
1 parent e3eb20f commit 8c038a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/api-reference/space/space.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,11 @@ space.removeDataLayer(id: string) => void
- `id` is the identifier of the layer to remove.

An equivalent method is `remove` on a [data layer controller](./data-layers#data-layer-controller).

### Remove all layers

Removing all data layers at once is done as follow.

```ts
space.removeAllDataLayers() => void
```

0 comments on commit 8c038a1

Please sign in to comment.