Simpler and faster VectorTile loading

This commit is contained in:
Andreas Hocevar
2021-05-30 21:22:03 +02:00
parent 04e323d69e
commit 5ab7cbf905
7 changed files with 98 additions and 188 deletions

View File

@@ -82,7 +82,7 @@ class TileQueue extends PriorityQueue {
const tile = /** @type {import("./Tile.js").default} */ (event.target);
const state = tile.getState();
if (
(tile.hifi && state === TileState.LOADED) ||
state === TileState.LOADED ||
state === TileState.ERROR ||
state === TileState.EMPTY
) {