Refactoring: improve caching

This commit is contained in:
Pieter Vander Vennet 2023-04-18 23:44:49 +02:00
parent f203a1158d
commit e36e9123f3
5 changed files with 91 additions and 20 deletions

View file

@ -158,7 +158,12 @@ export default class ThemeViewState implements SpecialVisualizationState {
this.perLayer = perLayer.perLayer
this.perLayer.forEach((fs) => {
new SaveFeatureSourceToLocalStorage(fs.layer.layerDef.id, 15, fs)
new SaveFeatureSourceToLocalStorage(
fs.layer.layerDef.id,
15,
fs,
this.featureProperties
)
const filtered = new FilteringFeatureSource(
fs.layer,