Skip to main content

Interface: GeovisWorkspaceRightSidebarState

Defined in: context/GeovisWorkspaceContext.ts:148

Extends

Properties

initialState?

optional initialState?: "open" | "closed"

Defined in: context/GeovisWorkspaceContext.ts:118

Whether the sidebar starts open or closed. Defaults to 'closed'.

Inherited from

GeovisWorkspaceSidebarState.initialState


onFeatureSelect?

optional onFeatureSelect?: (info) => Promise<unknown>

Defined in: context/GeovisWorkspaceContext.ts:163

Fetches the detail data for the clicked feature. Its promise drives the loading/error/data state handed to renderDetails. When set, an accepted click also opens the right sidebar.

Parameters

ParameterType
infoMapClickInfo

Returns

Promise<unknown>


renderDetails?

optional renderDetails?: (state) => ReactNode

Defined in: context/GeovisWorkspaceContext.ts:168

Renders the inspector slot's content from the current fetch state, replacing the built-in inspector panel when set.

Parameters

ParameterType
stateGeovisWorkspaceDetailState

Returns

ReactNode


shouldOpen?

optional shouldOpen?: (info) => boolean

Defined in: context/GeovisWorkspaceContext.ts:157

Gate deciding whether a map click drives the inspector: return false to silently ignore the click (the sidebar keeps its current detail and open state). When omitted, every click is accepted. Pairs with onFeatureSelect.

Parameters

ParameterType
infoMapClickInfo

Returns

boolean


title?

optional title?: string

Defined in: context/GeovisWorkspaceContext.ts:150

Title displayed at the top of the right sidebar.