Skip to main content

Function: useMapData()

useMapData(mapDataId): UseMapDataResult | undefined

Defined in: react/hooks.ts:350

Returns the indexed dataset entry for mapDataId, or undefined if the spec has no matching mapData[] entry. Re-renders when the spec changes (including via applyPatch).

Must be used inside a GeoVisProvider.

Parameters

ParameterType
mapDataIdstring

Returns

UseMapDataResult | undefined