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,