/ui/elements/legendIcon
The legendIcon module exports the default legendIcon(style) method.
- Source
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.
Name | Type | Description |
---|---|---|
style | feature-style | A JSON style object. |
A HTML element for the style.
- Type:
- HTMLElement
(inner) createIconFromInlineStyle(style) → {HTMLElement}
The createIconFromInlineStyle creates an icon from an inline style object.
Name | Type | Description |
---|---|---|
style | feature-style | A JSON style object. |
A HTML element for the style.
- Type:
- HTMLElement
(inner) createLineSymbol(style) → {HTMLElement}
The createLineSymbol creates an icon for a stroke [line] style object.
Name | Type | Description |
---|---|---|
style | feature-style | A JSON style object. |
A HTML element for the style.
- Type:
- HTMLElement
(inner) createPolygonSymbol(style) → {HTMLElement}
The createPolygonSymbol creates an icon for a fill [polygon] style object.
Name | Type | Description |
---|---|---|
style | feature-style | A JSON style object. |
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.
Name | Type | Description |
---|---|---|
style | feature-style | A JSON style object. |
A HTML element for the style.
- Type:
- HTMLElement