Skip to main content

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?

optional hasResolvedOnce?: 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?

optional onLayerVisibilityChange?: (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

ParameterType
layerIdstring
visibleboolean

Returns

void


onRepair?

optional onRepair?: (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

ParameterType
repairRepairOption

Returns

void


onSelectionChange?

optional onSelectionChange?: (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

ParameterType
selectionGeovisWorkspaceSelection

Returns

void


selection?

optional selection?: 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).