Interface: GeovisWorkspaceRightSidebarState
Defined in: context/GeovisWorkspaceContext.ts:98
Extends
Properties
initialState?
optionalinitialState?:"open"|"closed"
Defined in: context/GeovisWorkspaceContext.ts:68
Whether the sidebar starts open or closed. Defaults to 'closed'.
Inherited from
GeovisWorkspaceSidebarState.initialState
onFeatureSelect?
optionalonFeatureSelect?: (info) =>Promise<unknown>
Defined in: context/GeovisWorkspaceContext.ts:113
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
| Parameter | Type |
|---|---|
info | MapClickInfo |
Returns
Promise<unknown>
renderDetails?
optionalrenderDetails?: (state) =>ReactNode
Defined in: context/GeovisWorkspaceContext.ts:118
Renders the inspector slot's content from the current fetch state,
replacing the built-in inspector panel when set.
Parameters
| Parameter | Type |
|---|---|
state | GeovisWorkspaceDetailState |
Returns
ReactNode
shouldOpen?
optionalshouldOpen?: (info) =>boolean
Defined in: context/GeovisWorkspaceContext.ts:107
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
| Parameter | Type |
|---|---|
info | MapClickInfo |
Returns
boolean
title?
optionaltitle?:string
Defined in: context/GeovisWorkspaceContext.ts:100
Title displayed at the top of the right sidebar.