bounds management

This commit is contained in:
vcoppe committed 2025-10-19 16:14:05 +02:00
1 parent 117c46341b
commit e57ced0ce7
12 files changed
+258 -182

No files matched your search

@@ -61,8 +61,13 @@ export class ReducedGPXLayerCollection {
this._layers = new Map();
this._simplified = new Map();
this._fileStateCollectionOberver = new GPXFileStateCollectionObserver(
(fileId, fileState) => {
this._layers.set(fileId, new ReducedGPXLayer(fileState, this._updateSimplified));
(newFiles) => {
newFiles.forEach((fileState, fileId) => {
this._layers.set(
fileId,
new ReducedGPXLayer(fileState, this._updateSimplified)
);
});
},
(fileId) => {
this._layers.get(fileId)?.destroy();