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?
optionalonLayerVisibilityChange?: (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
| Parameter | Type |
|---|---|
layerId | string |
visible | boolean |
Returns
void
onRepair?
optionalonRepair?: (repair) =>void
Defined in: context/GeovisWorkspaceContext.ts:153
Called with the chosen RepairOption when a repair button is pressed.
Parameters
| Parameter | Type |
|---|---|
repair | RepairOption |
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
| Parameter | Type |
|---|---|
__namedParameters | { open: boolean; } |
__namedParameters.open | boolean |
Returns
void
setRightSidebarOpen
setRightSidebarOpen: (
__namedParameters) =>void
Defined in: context/GeovisWorkspaceContext.ts:151
Opens or closes the right sidebar.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | { open: boolean; } |
__namedParameters.open | boolean |
Returns
void
setSelection
setSelection: (
__namedParameters) =>void
Defined in: context/GeovisWorkspaceContext.ts:143
Sets the active item for a given menu group.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | { menuId: string; value: string; } |
__namedParameters.menuId | string |
__namedParameters.value | string |
Returns
void