Constraints for legend items. If nothing is passed, all legend items will be returned.
optionalids: {id:string;layerId:string; }[]
Array of legend item identifiers to constrain by.
optionallayerIds:string[]
Array of layer ids to constrain legend items by.
id
string
The id of the legend item.
layerId
string
The id of the layer the legend item belongs to.