Interface: GeovisWorkspaceProviderProps
Defined in: GeovisWorkspaceProvider.tsx:11
Properties
children
children:
ReactNode
Defined in: GeovisWorkspaceProvider.tsx:13
Content to render inside the provider.
config
config:
GeovisWorkspaceConfig
Defined in: GeovisWorkspaceProvider.tsx:15
Config describing the sidebars.
hasResolvedOnce?
optionalhasResolvedOnce?:boolean
Defined in: GeovisWorkspaceProvider.tsx:44
Whether the GeoVis runtime has ever resolved successfully. Computed by
GeovisWorkspace (which has runtime access) and forwarded here so it
reaches context; defaults to false for standalone usage without a
GeoVis runtime.
isLeftSidebarOpen?
optionalisLeftSidebarOpen?:boolean
Defined in: GeovisWorkspaceProvider.tsx:51
Whether the left sidebar is open. Provide it to control the open state
from the parent (as GeovisWorkspace does, so it can shift the map's
layer control clear of the open sidebar). Omit it to let the provider
manage the state internally (seeded from config.leftSidebar.initialState).
onLayerVisibilityChange?
optionalonLayerVisibilityChange?: (layerId,visible) =>void
Defined in: GeovisWorkspaceProvider.tsx:37
Called with a layer's id and its next visible value when the
LayerListControls controls slot variant toggles it.
Parameters
| Parameter | Type |
|---|---|
layerId | string |
visible | boolean |
Returns
void
onLeftSidebarOpenChange?
optionalonLeftSidebarOpenChange?: (open) =>void
Defined in: GeovisWorkspaceProvider.tsx:56
Called with the next open state whenever the left sidebar is opened or
closed. Pair it with isLeftSidebarOpen to control the open state.
Parameters
| Parameter | Type |
|---|---|
open | boolean |
Returns
void
onRepair?
optionalonRepair?: (repair) =>void
Defined in: GeovisWorkspaceProvider.tsx:32
Called with the chosen RepairOption when a repair button is pressed in
the warnings slot's default panel. Omit to render repair buttons
disabled rather than absent.
Parameters
| Parameter | Type |
|---|---|
repair | RepairOption |
Returns
void
onSelectionChange?
optionalonSelectionChange?: (selection) =>void
Defined in: GeovisWorkspaceProvider.tsx:26
Called with the full next selection whenever an item in a menu group is
selected. Use it to rebuild the visualizationSpec in the parent.
Parameters
| Parameter | Type |
|---|---|
selection | GeovisWorkspaceSelection |
Returns
void
selection?
optionalselection?:GeovisWorkspaceSelection
Defined in: GeovisWorkspaceProvider.tsx:21
Active item value per menu group, keyed by menu id. Provide it to control
the selection from the parent. Omit it to let the provider manage the
selection internally (seeded from each menu's defaultValue).