API REFERENCE

parseTopoJSON

Geo Map: decode TopoJSON without changing data. Returns null for other chart types or an unavailable child.

Definition

typescript
parseTopoJSON(input: unknown, objectName?: string): Promise<GeoMapFeatureCollection | null>
ArgumentsTypeRequired
inputunknownRequired
objectNamestringOptional

Return type: Promise<GeoMapFeatureCollection | null>. Call the method after element registration and await its Promise result.