Keep track of used labels

This commit is contained in:
ahocevar
2019-01-22 21:00:21 +01:00
parent ea45068335
commit 592b6cf362
11 changed files with 150 additions and 37 deletions

View File

@@ -107,6 +107,12 @@ class VectorRenderTile extends Tile {
const canvas = this.context_[key].canvas;
canvas.width = canvas.height = 0;
}
for (const key in this.executorGroups) {
const executorGroups = this.executorGroups[key];
for (let i = 0, ii = executorGroups.length; i < ii; ++i) {
executorGroups[i].disposeInternal();
}
}
this.setState(TileState.ABORT);
super.disposeInternal();
}