GeoJSON FeatureCollection for combining multiple features.
Array or single feature object.
const fc = new GeojsonFeatureCollection([ new GeojsonPoint([8, 51], {name: "Center"}), new GeojsonLine([[0,0], [1,2]], {id: 12})]);console.log(fc.toString()); Copy
const fc = new GeojsonFeatureCollection([ new GeojsonPoint([8, 51], {name: "Center"}), new GeojsonLine([[0,0], [1,2]], {id: 12})]);console.log(fc.toString());
Optional
Features array or single feature.
Convert to a GeoJSON FeatureCollection string.
GeoJSON FeatureCollection for combining multiple features.
Param: features
Array or single feature object.
Example