Skip to main content

Interface: GeovisWorkspaceContextValue

Defined in: context/GeovisWorkspaceContext.ts:137

Properties

config

config: GeovisWorkspaceConfig

Defined in: context/GeovisWorkspaceContext.ts:139

The config that drives the sidebars.


hasResolvedOnce

hasResolvedOnce: boolean

Defined in: context/GeovisWorkspaceContext.ts:170

Whether useGeoVis().result has ever been 'resolved' since this workspace mounted. Shared through context (rather than each consumer tracking it independently) so slots that mount only once there is content — like the warnings panel — see the same history as slots that are always mounted, such as map.


isLeftSidebarOpen

isLeftSidebarOpen: boolean

Defined in: context/GeovisWorkspaceContext.ts:145

Whether the left sidebar is currently open.


isRightSidebarOpen

isRightSidebarOpen: boolean

Defined in: context/GeovisWorkspaceContext.ts:149

Whether the right sidebar is currently open.


onLayerVisibilityChange?

optional onLayerVisibilityChange?: (layerId, visible) => void

Defined in: context/GeovisWorkspaceContext.ts:162

Called with a layer's id and its next visible value when the LayerListControls controls slot variant toggles it. Only the application can rebuild visualizationSpec with the new value — the same delegation shape onRepair/onVariableChange already use, since SpecPatch's 'layer' target only supports paint properties, not arbitrary layer fields like visible.

Parameters

ParameterType
layerIdstring
visibleboolean

Returns

void


onRepair?

optional onRepair?: (repair) => void

Defined in: context/GeovisWorkspaceContext.ts:153

Called with the chosen RepairOption when a repair button is pressed.

Parameters

ParameterType
repairRepairOption

Returns

void


selection

selection: GeovisWorkspaceSelection

Defined in: context/GeovisWorkspaceContext.ts:141

Active item value per menu group, keyed by menu id.


setLeftSidebarOpen

setLeftSidebarOpen: (__namedParameters) => void

Defined in: context/GeovisWorkspaceContext.ts:147

Opens or closes the left sidebar.

Parameters

ParameterType
__namedParameters{ open: boolean; }
__namedParameters.openboolean

Returns

void


setRightSidebarOpen

setRightSidebarOpen: (__namedParameters) => void

Defined in: context/GeovisWorkspaceContext.ts:151

Opens or closes the right sidebar.

Parameters

ParameterType
__namedParameters{ open: boolean; }
__namedParameters.openboolean

Returns

void


setSelection

setSelection: (__namedParameters) => void

Defined in: context/GeovisWorkspaceContext.ts:143

Sets the active item for a given menu group.

Parameters

ParameterType
__namedParameters{ menuId: string; value: string; }
__namedParameters.menuIdstring
__namedParameters.valuestring

Returns

void