/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.

The legend of a theme with a data distribution is not created until the distribution has been processed from the layer data. The category values and labels of a jenks distribution are assigned from the layer data.

Parameters:
NameTypeDescription
layerlayer

The decorated mapp layer.

Returns:

The graduated theme legend element.

Type: 
HTMLElement