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.
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
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).