Skip to main content

Interface: GeovisWorkspaceConfig

Defined in: context/GeovisWorkspaceContext.ts:718

Properties​

appearance?​

optional appearance?: "card" | "bare"

Defined in: context/GeovisWorkspaceContext.ts:726

Visual framing of the workspace container. 'card' (default) draws a border, rounded corners, and background — the framed look used when the workspace stands alone (e.g. Storybook). 'bare' drops the border and radius so the workspace fills its container edge-to-edge when embedded in an app that owns the framing.


optional leftSidebar?: GeovisWorkspaceLeftSidebarState

Defined in: context/GeovisWorkspaceContext.ts:732

Left sidebar (controls slot): its sections and open/closed state.


legend?​

optional legend?: GeovisWorkspaceLegendConfig

Defined in: context/GeovisWorkspaceContext.ts:730

Content for the legend slot's default panel.


renderLoading?​

optional renderLoading?: () => ReactNode

Defined in: context/GeovisWorkspaceContext.ts:755

What to draw over the map while a variation change is in flight, centered on the map area.

The workspace owns when and where; the app owns what, because a loading indicator is the app's voice and the package has no business picking it. Omitted, nothing is drawn and the wait reads only in the sidebar, as it did before.

It covers the map for as long as it shows: a reader who pans towards something while the answer is still coming would be panning over a map about to be repainted under them.

Only variation changes arm it. Other blocking picks still make the menus inert, but they do not put anything over the map — a setting that repaints in place is not worth hiding the map for.

Returns​

ReactNode

Example​

renderLoading: () => <Spinner />

optional rightSidebar?: GeovisWorkspaceRightSidebarState

Defined in: context/GeovisWorkspaceContext.ts:734

Right sidebar (hosts legend/warnings/inspector/metadata) title, open/closed state, and detail API.


slots?​

optional slots?: Partial<Record<GeovisWorkspaceSlotName, GeovisWorkspaceSlotConfig>>

Defined in: context/GeovisWorkspaceContext.ts:728

Per-slot overrides or hides. Omit an entry to use the slot's default.