fix basezoom tile creation
This commit is contained in:
parent
6d86be5276
commit
74cf680e83
|
@ -128,7 +128,7 @@ class CanvasUpdater {
|
||||||
const queue = this.TileLoadingQueues[Math.max(this.maxTiledZoom - 1, 0)];
|
const queue = this.TileLoadingQueues[Math.max(this.maxTiledZoom - 1, 0)];
|
||||||
if (typeof queue === 'undefined') return;
|
if (typeof queue === 'undefined') return;
|
||||||
|
|
||||||
const [cx, cy] = chunk.map((z) => Math.floor(z / 4));
|
const [cx, cy] = chunk.map((z) => Math.floor(z / TILE_ZOOM_LEVEL));
|
||||||
const chunkOffset = cx + cy * this.firstZoomtileWidth;
|
const chunkOffset = cx + cy * this.firstZoomtileWidth;
|
||||||
if (~queue.indexOf(chunkOffset)) return;
|
if (~queue.indexOf(chunkOffset)) return;
|
||||||
queue.push(chunkOffset);
|
queue.push(chunkOffset);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user