fix zoomed tile creation queue

This commit is contained in:
HF 2022-06-30 14:39:03 +02:00
parent 74cf680e83
commit 523b2c32de

View File

@ -110,7 +110,7 @@ class CanvasUpdater {
],
});
} else {
const [ucx, ucy] = [cx, cy].map((z) => Math.floor(z / 4));
const [ucx, ucy] = [cx, cy].map((z) => Math.floor(z / TILE_ZOOM_LEVEL));
const upperTile = ucx + ucy * (TILE_ZOOM_LEVEL ** (zoom - 1));
const upperQueue = this.TileLoadingQueues[zoom - 1];
if (~upperQueue.indexOf(upperTile)) return;