src/core/geoJSON-leaflet.js
Function layersToGeoJSON
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function layersToGeoJSON(collectionType, layers) {
// Convert an array of Leaflet layers to GeoJSON according to
// argument `collectionType`:
//
// - `'FeatureCollection'`: a GeoJSON FeatureCollection.