Skip to content

Commit

Permalink
Merge pull request #1899 from simon-leech/opacity-slider-fix
Browse files Browse the repository at this point in the history
Opacity Slider Fix
  • Loading branch information
RobAndrewHurst authored Feb 17, 2025
2 parents aacbd27 + 36a914a commit 4c352a0
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 4c352a0

Please sign in to comment.