Skip to main content

Interface: ContextPacket

Defined in: runtime/contextPacket.ts:55

Versioned, read-only, metadata-only summary of the current map (ADR-0004). Contains aggregates only — never GeoJSON geometry, mapData[].data rows, or full color/threshold lists. Every id here is one an action already accepts (layers[].id, etc.) — what the packet names, an action can target. Produced on demand by GeoVisRuntime.getContextPacket(); grows one field per PRD-002 phase.

Properties

allowedActions

allowedActions: ("toggle-layer" | "select-feature" | "set-map-data" | "set-filter" | "set-view-preset")[]

Defined in: runtime/contextPacket.ts:66

The ADR-0003 vocabulary, filtered to what the current spec actually supports.


lastResult

lastResult: GeoVisResult

Defined in: runtime/contextPacket.ts:70

The last GeoVisResult from update/applyPatch/dispatch (ADR-0001).


layers

layers: ContextPacketLayer[]

Defined in: runtime/contextPacket.ts:59


legends

legends: ContextPacketLegend[]

Defined in: runtime/contextPacket.ts:60


mapType?

optional mapType?: MapType

Defined in: runtime/contextPacket.ts:57


schemaVersion

schemaVersion: number

Defined in: runtime/contextPacket.ts:56


selection

selection: GeoVisSelection | null

Defined in: runtime/contextPacket.ts:64

The runtime's current selection, or null when nothing is selected.


sources

sources: ContextPacketSource[]

Defined in: runtime/contextPacket.ts:58


viewPresets

viewPresets: ContextPacketViewPreset[]

Defined in: runtime/contextPacket.ts:62

Declared viewPresets, id/label only — never raw camera coordinates (ADR-0004).


warnings

warnings: GeoVisIssue[]

Defined in: runtime/contextPacket.ts:68

Non-blocking issues from the last resolved result (e.g. policy violations).