API REFERENCE

parseGeoJSON

Geo Map: decode RFC 7946 GeoJSON without changing data. Returns null for other types or an unavailable child.

Definition

typescript
parseGeoJSON(input: unknown): Promise<GeoMapFeatureCollection | null>
ArgumentsTypeRequired
inputunknownRequired

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