pacificclimate/climate-explorer-frontend

View on GitHub
src/core/geoJSON-leaflet.js

Summary

Maintainability
A
1 hr
Test Coverage

Function layersToGeoJSON has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function layersToGeoJSON(collectionType, layers) {
  // Convert an array of Leaflet layers to GeoJSON according to
  // argument `collectionType`:
  //
  //  - `'FeatureCollection'`: a GeoJSON FeatureCollection.
Severity: Minor
Found in src/core/geoJSON-leaflet.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status