diff options
Diffstat (limited to 'app/geometry.js')
| -rw-r--r-- | app/geometry.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/geometry.js b/app/geometry.js index ac6b46c..0952bbb 100644 --- a/app/geometry.js +++ b/app/geometry.js @@ -1066,7 +1066,7 @@ export class Feature { } } -export class Collection { +export class FeatureCollection { /** * @param {Feature[]} features - Feature array */ @@ -1088,15 +1088,15 @@ export class Collection { /** * Create from GeoJSON * @param {Object} geojson - GeoJSON collection - * @returns {Collection} + * @returns {FeatureCollection} */ /** * @param {{features: any[]}} geojson - * @returns {Collection} + * @returns {FeatureCollection} */ static fromGeoJSON(geojson) { const features = geojson.features.map(Feature.fromGeoJSON).filter((x) => x !== null); - return new Collection(features); + return new FeatureCollection(features); } /** |
