ConstPosition, title, and collapsible/collapsed state.
Registers a GeoJSON layer in the legend
The layer id
Layer options
Redraws the panel to match the current layer state.
Debounced by default, so a burst of layer changes costs one redraw. Passing immediate
cancels any pending debounce and redraws synchronously — needed when the caller is
about to read the rendered DOM.
A no-op, logged at debug, when the control is not yet mounted (early boot).
Skip the debounce and redraw now. Defaults to false.
Resets the module back to its post-import state.
Run on map teardown so the control, the map handle and the accumulated sections do not survive a destroy → recreate cycle. A pending debounced refresh is cancelled too: its callback closes over the old control and would fire against a detached DOM node.
Idempotent — safe to call more than once.
Mounts the layer-manager panel.
Called without arguments, everything comes from the profile configuration — the recommended path. Anything passed here overrides that, field by field.