Function: GeoVisLayerControl()
GeoVisLayerControl(
__namedParameters?):Element|null
Defined in: ui/GeoVisLayerControl.tsx:337
Parameters
| Parameter | Type | Description |
|---|---|---|
__namedParameters | { expanded?: boolean; onExpandedChange?: (expanded) => void; trailing?: ReactNode; } | - |
__namedParameters.expanded? | boolean | Whether the panel is open. Omit to let the control own that state — the default. Pass it (with onExpandedChange) to coordinate the panel with a sibling overlay: below the compact breakpoint <GeoVisProvider> does exactly that, so opening the legend closes this panel and vice versa, since both claim the space above the trigger row. |
__namedParameters.onExpandedChange? | (expanded) => void | Called with the requested open state. Required for expanded to take effect. |
__namedParameters.trailing? | ReactNode | Extra control rendered beside the trigger, inside the same anchored row. Used below the compact breakpoint to sit the legend button next to this one; the two then share a single corner anchor instead of each computing its own offset and colliding when this control's panel opens sideways. |
Returns
Element | null