Function: layerControlItems()
layerControlItems(
entries):LayerControlItem[]
Defined in: spec/layerControl.ts:35
Every toggle of a layer control, with each category's items in its place — what the on/off state, the trigger's count and the map sync are about.
Parameters
| Parameter | Type | Description |
|---|---|---|
entries | readonly LayerControlEntry[] | control.items. |
Returns
The toggles, in order.
Example
layerControlItems([parques, { id: 'saude', label: 'Saúde', items: [ubs] }]);
// [parques, ubs]