/ui/layers/panels/style
The style panel module exports the styleDrawer method for the mapp.ui.layers.panels{}
library object.
- Source
Requires
- module:/ui/elements/style
- module:/ui/elements/drawer
Methods
(inner) stylePanel(layer) → {HTMLElement}
The stylePanel will shortcircuit with the layer.style.hidden flag.
A layer style panel element will be requested from mapp.utils.style.panel().
A default order for the elements that make up the style panel will be assigned as mapp.ui.elements.style.elements[] if not implicit in configuration.
A drawer element will be created with the style panel element as content.
Parameters:
PropertiesName | Type | Description |
---|---|---|
layer | layer | A decorated mapp layer with a style object. |
Name | Type | Description |
---|---|---|
layer.style | layer-style | The layer style configuration. |
style.hidden | Boolean | Do not create style drawer for layer.view. |
style.classList | string | String of additional classes to add to the drawer element. |
Returns:
The style drawer element for the layer.view.
- Type:
- HTMLElement