diff --git a/src/core/tileserver.js b/src/core/tileserver.js index ba46c2a..7fad101 100644 --- a/src/core/tileserver.js +++ b/src/core/tileserver.js @@ -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;