/ui/layers/legends/graduated
The graduated theme legend module exports the graduatedTheme to the ui.layers.legend{}
library object.
Requires
Methods
(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