diff --git a/src/mantle/data/geojson.ts b/src/mantle/data/geojson.ts index b241146..86d298e 100644 --- a/src/mantle/data/geojson.ts +++ b/src/mantle/data/geojson.ts @@ -20,6 +20,14 @@ export function processGeoJSON(geojson: GeoJSON, range?: DataRange): Feature[] { if (geojson.type === "Feature") { const geo = geojson.geometry; + if (geo.type === "GeometryCollection") { + return geo.geometries.flatMap(geometry => { + return processGeoJSON({ + ...geojson, + geometry, + }); + }); + } if (geo.type === "MultiPoint") { return geo.coordinates.flatMap(coord => { return processGeoJSON({