Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opacity Slider Fix #1899

Merged
merged 2 commits into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/ui/layers/panels/style.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

The style panel module exports the styleDrawer method for the `mapp.ui.layers.panels{}` library object.

@requires /ui/elements/style
@requires /ui/elements/layerStyle
@requires /ui/elements/drawer

@module /ui/layers/panels/style
Expand Down Expand Up @@ -141,11 +141,14 @@ A default order for the elements that make up the style panel will be assigned a

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]{@link module:/ui/elements/layerStyle~panel}.

@param {layer} layer A decorated mapp layer with a style object.

@property {layer-style} layer.style The layer style configuration.
@property {Boolean} style.hidden Do not create style drawer for layer.view.
@property {string} style.classList String of additional classes to add to the drawer element.
@property {array} [style.elements=['labels','label','hovers','hover','themes','theme', 'icon_scaling','opacitySlider']] Array of default elements and their order for the style panel.

@returns {HTMLElement} The style drawer element for the layer.view.
*/
Expand All @@ -161,6 +164,7 @@ export default function stylePanel(layer) {
'themes',
'theme',
'icon_scaling',
'opacitySlider',
];

// Request style.panel element as content for drawer.
Expand Down