Class: MultispectralUI

MultispectralUI

MultispectralUI - User interface components for multispectral visualization

Provides interactive controls for manipulating visualization parameters in the LayerMultispectral class. Features include preset selection, single band visualization controls, and adaptive UI positioning.

The UI can be configured as a floating panel or embedded within an existing container element, adapting automatically to the available space.


new MultispectralUI(layer [, options])

Creates a new MultispectralUI instance

Parameters:
Name Type Argument Description
layer LayerMultispectral

Multispectral layer to control

options Object <optional>

UI configuration options

Properties
Name Type Argument Default Description
containerId string <optional>

ID of container element for UI (optional)

showPresets boolean <optional>
true

Whether to show preset selection controls

showSingleBand boolean <optional>
true

Whether to show single band control panel

floatingPanel boolean <optional>
true

Whether to create a floating panel UI

Source:

Methods


destroy()

Destroys UI and removes elements from DOM

Cleans up all created UI elements and event listeners. Call this method before removing the layer to prevent memory leaks.

Source: