/ui/layers/panels/style
The style panel module exports the styleDrawer method for the mapp.ui.layers.panels{}
library object.
- Source
Requires
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.
A default array will be assigned to the layer.style object to order the elements being added to the view in the elements.layerStyle panel method.
Name | Type | Description |
---|---|---|
layer | layer | A decorated mapp layer with a style object. |
Name | Type | Attributes | Default | 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. | ||
style.elements | array | <optional> | ['labels','label','hovers','hover','themes','theme', 'icon_scaling','opacitySlider'] | Array of default elements and their order for the style panel. |
The style drawer element for the layer.view.
- Type:
- HTMLElement