MapComplete/Logic/State/FeaturePipelineState.ts
Pieter Vander Vennet 5d0fe31c41 refactoring
2023-03-28 05:13:48 +02:00

17 lines
689 B
TypeScript

import SelectedFeatureHandler from "../Actors/SelectedFeatureHandler"
import Hash from "../Web/Hash"
import MetaTagRecalculator from "../FeatureSource/Actors/MetaTagRecalculator"
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
private readonly metatagRecalculator: MetaTagRecalculator
constructor() {
this.metatagRecalculator = new MetaTagRecalculator(this, this.featurePipeline)
this.metatagRecalculator.registerSource(this.currentView)
new SelectedFeatureHandler(Hash.hash, this)
}
}