Fix: tests

This commit is contained in:
Pieter Vander Vennet 2023-06-01 11:37:40 +02:00
parent fbf2742f80
commit 2a73c43a5f
2 changed files with 6 additions and 5 deletions

View file

@ -59,9 +59,10 @@ export default class SaveFeatureSourceToLocalStorage {
layername: string,
zoomlevel: number,
features: FeatureSource,
featureProperties: FeaturePropertiesStore
featureProperties: FeaturePropertiesStore,
maxCacheAge: number
) {
const storage = TileLocalStorage.construct<Feature[]>(backend, layername)
const storage = TileLocalStorage.construct<Feature[]>(backend, layername, maxCacheAge)
const singleTileSavers: Map<number, SingleTileSaver> = new Map<number, SingleTileSaver>()
features.features.addCallbackAndRunD((features) => {
const sliced = GeoOperations.slice(zoomlevel, features)