Skip to main content

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​

ParameterTypeDescription
entriesreadonly LayerControlEntry[]control.items.

Returns​

LayerControlItem[]

The toggles, in order.

Example​

layerControlItems([parques, { id: 'saude', label: 'Saúde', items: [ubs] }]);
// [parques, ubs]