/ui/elements/legendIcon

The legendIcon module exports the default legendIcon(style) method.

Methods

(inner) createIconFromArray(style) → {HTMLElement}

The createIconFromArray method iterates through an style.icon[] array to create a layered and scaled icon element for displaying an icon style.

Parameters:
NameTypeDescription
stylefeature-style

A JSON style object.

Returns:

A HTML element for the style.

Type: 
HTMLElement

(inner) createIconFromInlineStyle(style) → {HTMLElement}

The createIconFromInlineStyle creates an icon from an inline style object.

Parameters:
NameTypeDescription
stylefeature-style

A JSON style object.

Returns:

A HTML element for the style.

Type: 
HTMLElement

(inner) createLineSymbol(style) → {HTMLElement}

The createLineSymbol creates an icon for a stroke [line] style object.

Parameters:
NameTypeDescription
stylefeature-style

A JSON style object.

Returns:

A HTML element for the style.

Type: 
HTMLElement

(inner) createPolygonSymbol(style) → {HTMLElement}

The createPolygonSymbol creates an icon for a fill [polygon] style object.

Parameters:
NameTypeDescription
stylefeature-style

A JSON style object.

Returns:

A HTML element for the style.

Type: 
HTMLElement

(inner) legendIcon(style) → {HTMLElement}

The legendIcon method returns an icon for displaying a mapp-style object outside the mapview.Map canvas.

Parameters:
NameTypeDescription
stylefeature-style

A JSON style object.

Returns:

A HTML element for the style.

Type: 
HTMLElement