/ui/layers/legends/graduated
The graduated theme legend module exports the graduatedTheme to the ui.layers.legend{}
library object.
Requires
Methods
(inner) catToggle(e, layer, cat)
The method toggles the disabled class on the event target element.
If toggled [on] the style will be set to null.
The cat style will be restored if toggled off.
Parameters:
Name | Type | Description |
---|---|---|
e | Event | The cat label click event. |
layer | layer | The decorated mapp layer. |
cat | object | The cat object from the theme. |
(inner) graduatedTheme(layer) → {HTMLElement}
The graduatedTheme method creates a catElements[]
array with icons for each graduated theme category. The elements array is passed into a legend element assigned as layer.style.legend
and returned from the method.
Parameters:
Name | Type | Description |
---|---|---|
layer | layer | The decorated mapp layer. |
Returns:
The graduated theme legend element.
- Type:
- HTMLElement