diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-13 13:23:25 +0200 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-13 16:01:24 +0200 |
| commit | 2113f8269423932fa76ae4f822f77a07dd703266 (patch) | |
| tree | 564a92220ab89b91c17efa63fc94549a90445573 /app/geometry.js | |
| parent | 4372d56a51a9596b1636d133b03057b0ba84c920 (diff) | |
| download | housing-2113f8269423932fa76ae4f822f77a07dd703266.tar.zst | |
Refactor, add light rail and tram stops
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); } /** |
