MapComplete/Logic/State/FeaturePipelineState.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
689 B
TypeScript
Raw Normal View History

import SelectedFeatureHandler from "../Actors/SelectedFeatureHandler"
import Hash from "../Web/Hash"
2022-01-26 20:47:08 +01:00
import MetaTagRecalculator from "../FeatureSource/Actors/MetaTagRecalculator"
2023-03-25 02:48:24 +01:00
export default class FeaturePipelineState {
/**
* The piece of code which fetches data from various sources and shows it on the background map
*/
public readonly featurePipeline: FeaturePipeline
2022-01-26 21:40:38 +01:00
private readonly metatagRecalculator: MetaTagRecalculator
2022-09-08 21:40:48 +02:00
2023-03-28 05:13:48 +02:00
constructor() {
2022-01-26 20:47:08 +01:00
this.metatagRecalculator = new MetaTagRecalculator(this, this.featurePipeline)
this.metatagRecalculator.registerSource(this.currentView)
new SelectedFeatureHandler(Hash.hash, this)
}
}