Probably fix #1605

This commit is contained in:
Pieter Vander Vennet 2024-04-24 00:52:17 +02:00
parent b453e39a7f
commit 5bebcf3825

View file

@ -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<Feature[]>
private zoomlevel: number
private readonly zoomlevel: number
constructor(
backend: string,
layername: string,