# LegendItemsConstraint

***

Constraints for legend items. If nothing is passed, all legend items will be returned.

## Properties

### ids?

> `optional` **ids**: { `id`: `string`; `layerId`: `string`; }\[]

Array of legend item identifiers to constrain by.

| Name      | Type     | Description                                     |
| --------- | -------- | ----------------------------------------------- |
| `id`      | `string` | The id of the legend item.                      |
| `layerId` | `string` | The id of the layer the legend item belongs to. |

***

### layerIds?

> `optional` **layerIds**: `string`\[]

Array of layer ids to constrain legend items by.
