Skip to content

@sqlrooms/deck / normalizeDeckMapPointConfig

Function: normalizeDeckMapPointConfig()

normalizeDeckMapPointConfig<T>(options): T

Post-normalizes an existing Deck map config so table-backed lon/lat datasets without transformSql, sqlQuery, or a native geometry column get a WKB point transform, geometry bindings, and fitToData.geometryColumn alignment.

Prefer this for AI/tool configs that arrive without a transform. Fresh configs from createDeckMapDashboardConfigForTable already include the transform; this helper patches in place without rebuilding layers.

Type Parameters

Type Parameter
T extends DeckMapConfig

Parameters

ParameterType
options{ config: T; resolveTable: (tableName) => DataTable | undefined; }
options.configT
options.resolveTable(tableName) => DataTable | undefined

Returns

T