From 50827d38a8bde17d50258711bb4ff63f83ddb02c Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 21 Jun 2021 03:11:00 +0200 Subject: [PATCH] Add a few comments --- Logic/FeatureSource/MetaTaggingFeatureSource.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Logic/FeatureSource/MetaTaggingFeatureSource.ts b/Logic/FeatureSource/MetaTaggingFeatureSource.ts index d6602069ae..726f4d6062 100644 --- a/Logic/FeatureSource/MetaTaggingFeatureSource.ts +++ b/Logic/FeatureSource/MetaTaggingFeatureSource.ts @@ -3,14 +3,18 @@ import {UIEventSource} from "../UIEventSource"; import State from "../../State"; import Hash from "../Web/Hash"; import MetaTagging from "../MetaTagging"; -import ExtractRelations from "../Osm/ExtractRelations"; -import FeatureSourceMerger from "./FeatureSourceMerger"; export default class MetaTaggingFeatureSource implements FeatureSource { public readonly features: UIEventSource<{ feature: any; freshness: Date }[]> = new UIEventSource<{ feature: any; freshness: Date }[]>(undefined); public readonly name; + /*** + * Constructs a new metatagger which'll calculate various tags + * @param allFeaturesSource: A source where all the currently known features can be found - used to calculate overlaps etc + * @param source: the source of features that should get their metatag and which should be exported again + * @param updateTrigger + */ constructor(allFeaturesSource: FeatureSource, source: FeatureSource, updateTrigger?: UIEventSource) { const self = this; this.name = "MetaTagging of " + source.name