forked from MapComplete/MapComplete
Tying the knot: calculatedTags will update every time new data are added to the map. Fixes part of #287
This commit is contained in:
parent
4dda8fdcfa
commit
bc605371f5
3 changed files with 41 additions and 25 deletions
|
|
@ -16,7 +16,7 @@ import RegisteringFeatureSource from "./RegisteringFeatureSource";
|
|||
|
||||
export default class FeaturePipeline implements FeatureSource {
|
||||
|
||||
public features: UIEventSource<{ feature: any; freshness: Date }[]>;
|
||||
public features: UIEventSource<{ feature: any; freshness: Date }[]> = new UIEventSource<{feature: any; freshness: Date}[]>([]);
|
||||
|
||||
public readonly name = "FeaturePipeline"
|
||||
|
||||
|
|
@ -83,7 +83,8 @@ export default class FeaturePipeline implements FeatureSource {
|
|||
selectedElement,
|
||||
merged
|
||||
));
|
||||
this.features = source.features;
|
||||
|
||||
source.features.syncWith(this.features)
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue