Skip to main content

Function: getInitialSelection()

getInitialSelection(__namedParameters): GeovisWorkspaceSelection

Defined in: GeovisWorkspaceProvider.tsx:97

Builds the initial selection from every menu the left sidebar declares: a variations section body, and a variations control inside a filters body. Each seeds selection[menuId] with its defaultValue, so a menu is seeded the same way whichever of the two surfaces it is declared on.

Timeline filters are intentionally NOT seeded here — useTimeline publishes a timeline's default to the shared selection on mount, so seeding it here would suppress that publish and leave uncontrolled consumers unaware of the initial value. Use it to seed the parent's selection state when controlling the workspace.

Parameters

ParameterType
__namedParameters{ config: GeovisWorkspaceConfig; }
__namedParameters.configGeovisWorkspaceConfig

Returns

GeovisWorkspaceSelection