(data)
| 131642 | if ((0, _vegaUtil.isFunction)(proj[key])) proj[key](value); |
| 131643 | } |
| 131644 | function collectGeoJSON(data) { |
| 131645 | data = (0, _vegaUtil.array)(data); |
| 131646 | return data.length === 1 ? data[0] : { |
| 131647 | type: FeatureCollection, |
| 131648 | features: data.reduce((a, f)=>a.concat(featurize(f)), []) |
| 131649 | }; |
| 131650 | } |
| 131651 | function featurize(f) { |
| 131652 | return f.type === FeatureCollection ? f.features : (0, _vegaUtil.array)(f).filter((d)=>d != null).map((d)=>d.type === Feature ? d : { |
| 131653 | type: Feature, |