/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:
NameTypeDescription
eEvent

The cat label click event.

layerlayer

The decorated mapp layer.

catobject

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:
NameTypeDescription
layerlayer

The decorated mapp layer.

Returns:

The graduated theme legend element.

Type: 
HTMLElement