Add a few comments
This commit is contained in:
parent
edab6109ca
commit
50827d38a8
1 changed files with 6 additions and 2 deletions
|
@ -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<any>) {
|
||||
const self = this;
|
||||
this.name = "MetaTagging of " + source.name
|
||||
|
|
Loading…
Reference in a new issue