Skip to main content

Interface: GeovisWorkspaceRightSidebarState

Defined in: context/GeovisWorkspaceContext.ts:80

Extends​

Properties​

initialState?​

optional initialState?: "open" | "closed"

Defined in: context/GeovisWorkspaceContext.ts:50

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:95

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:100

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:89

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:82

Title displayed at the top of the right sidebar.