From 2113f8269423932fa76ae4f822f77a07dd703266 Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Thu, 13 Nov 2025 13:23:25 +0200 Subject: Refactor, add light rail and tram stops --- app/geometry.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/geometry.js') 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); } /** -- cgit v1.2.3-70-g09d2