Interface: GeoVisContextValue
Defined in: react/contexts.ts:33
Properties
applyPatch
applyPatch: (
patch) =>void
Defined in: react/contexts.ts:38
Low-level escape hatch (PRD-002) — prefer dispatch below for anything expressible as one of its actions.
Parameters
| Parameter | Type |
|---|---|
patch | SpecPatch |
Returns
void
dispatch
dispatch: (
action) =>GeoVisResult
Defined in: react/contexts.ts:46
Dispatches a closed, typed GeoVisAction (ADR-0003) and keeps spec/
result above in sync on success — the same pattern as applyPatch.
Prefer this over applyPatch for anything expressible as an action.
Parameters
| Parameter | Type |
|---|---|
action | GeoVisAction |
Returns
result
result:
GeoVisResult
Defined in: react/contexts.ts:54
The latest GeoVisResult from validating the spec (schema, referential
integrity, and adapter capabilities) plus cartography policy warnings.
resolved.warnings carries policy violations — they never block
rendering. Any other status means spec still reflects the last good
value and the map was not updated.
runtime
runtime:
GeoVisRuntime|null
Defined in: react/contexts.ts:34
setView
setView: (
options) =>void
Defined in: react/contexts.ts:40
Imperatively moves the camera and syncs spec.view. Animated by default.
Parameters
| Parameter | Type |
|---|---|
options | SetViewOptions |
Returns
void
spec
spec:
VisualizationSpec
Defined in: react/contexts.ts:36
The last successfully accepted spec — unchanged while result is a failure (ADR-0001: nothing renders on failure).