Skip to content
Merged
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
11 changes: 11 additions & 0 deletions docs/plugins/datasets.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ Array of dataset configurations to render on the map. See [Dataset configuration

---

### `hasMenu`

**Type:** `boolean`
**Default:** `true`

Shows the Layers button and LayersMenu panel. Set to `false` to leave them out, for example when the layers are controlled by your own UI.

---

## Dataset configuration

Each entry in the `datasets` array describes one data source and how it should be rendered.
Expand Down Expand Up @@ -290,6 +299,8 @@ When `true`, the dataset appears in the Key panel with its style symbol and labe

When `true`, the dataset appears in the LayersMenu panel and can be toggled on and off by the user. Sublayers inherit this value — set `showInMenu: false` on an individual sublayer to opt it out.

If no dataset or sublayer has `showInMenu: true` when the map loads, the Layers button and LayersMenu panel are not shown.

---

### `groupLabel`
Expand Down
Loading