From 5bebcf382541389e54ab889388de2ae4a51b65d2 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 24 Apr 2024 00:52:17 +0200 Subject: [PATCH] Probably fix #1605 --- .../FeatureSource/Actors/SaveFeatureSourceToLocalStorage.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Logic/FeatureSource/Actors/SaveFeatureSourceToLocalStorage.ts b/src/Logic/FeatureSource/Actors/SaveFeatureSourceToLocalStorage.ts index bc26ce3f5..416e6f900 100644 --- a/src/Logic/FeatureSource/Actors/SaveFeatureSourceToLocalStorage.ts +++ b/src/Logic/FeatureSource/Actors/SaveFeatureSourceToLocalStorage.ts @@ -38,6 +38,10 @@ class SingleTileSaver { if (this._registeredIds.has(id)) { continue } + if(id.match(/(node|way|relation)\/-.*/)){ + // We don't cache newly created points + continue + } this._featureProperties.getStore(id)?.addCallbackAndRunD(() => { this._isDirty.setData(true) }) @@ -57,7 +61,7 @@ class SingleTileSaver { */ export default class SaveFeatureSourceToLocalStorage { public readonly storage: TileLocalStorage - private zoomlevel: number + private readonly zoomlevel: number constructor( backend: string, layername: string,