fix zoomed tile creation queue
This commit is contained in:
parent
74cf680e83
commit
523b2c32de
|
@ -110,7 +110,7 @@ class CanvasUpdater {
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
} else {
|
} 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 upperTile = ucx + ucy * (TILE_ZOOM_LEVEL ** (zoom - 1));
|
||||||
const upperQueue = this.TileLoadingQueues[zoom - 1];
|
const upperQueue = this.TileLoadingQueues[zoom - 1];
|
||||||
if (~upperQueue.indexOf(upperTile)) return;
|
if (~upperQueue.indexOf(upperTile)) return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user