Huge refactoring: split readonly and writable stores

This commit is contained in:
Pieter Vander Vennet 2022-06-05 02:24:14 +02:00
parent 0946d8ac9c
commit 4283b76f36
95 changed files with 819 additions and 625 deletions

View file

@ -141,7 +141,7 @@ export class TileHierarchyAggregator implements FeatureSource {
return empty
}
const features = []
const features: {feature: any, freshness: Date}[] = []
self.visitSubTiles(aggr => {
if (aggr.showCount < cutoff) {
return false
@ -156,7 +156,7 @@ export class TileHierarchyAggregator implements FeatureSource {
return features
}, [this.updateSignal.stabilized(500)])
return new StaticFeatureSource(features, true);
return new StaticFeatureSource(features);
}
private update() {