From aa8fc86bc9801ae1c76b3345c2090743f0e82096 Mon Sep 17 00:00:00 2001 From: HF Date: Thu, 23 Jun 2022 15:50:30 +0200 Subject: [PATCH] small fixes, remove tile filename logging again --- src/core/Tile.js | 1 - src/ui/ChunkLoader2D.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/Tile.js b/src/core/Tile.js index 5fe0ee4..0b41a11 100644 --- a/src/core/Tile.js +++ b/src/core/Tile.js @@ -237,7 +237,6 @@ export async function createZoomedTile( for (let dx = 0; dx < TILE_ZOOM_LEVEL; dx += 1) { // eslint-disable-next-line max-len const chunkfile = `${canvasTileFolder}/${z + 1}/${x * TILE_ZOOM_LEVEL + dx}/${y * TILE_ZOOM_LEVEL + dy}.png`; - console.log(chunkfile); if (!fs.existsSync(chunkfile)) { na.push([dx, dy]); continue; diff --git a/src/ui/ChunkLoader2D.js b/src/ui/ChunkLoader2D.js index c50e11a..a7204d3 100644 --- a/src/ui/ChunkLoader2D.js +++ b/src/ui/ChunkLoader2D.js @@ -181,7 +181,6 @@ class ChunkLoader { ) { const chunkKey = `${zoom}:${cx}:${cy}`; let chunkRGB = this.chunks.get(chunkKey); - const { canvasId } = this; if (chunkRGB) { if (chunkRGB.ready) { return chunkRGB.image; @@ -200,7 +199,7 @@ class ChunkLoader { const preLoad = this.preLoadChunk(zoom, cx, cy, chunkRGB); if (preLoad) return preLoad; } - return (showLoadingTile) ? loadingTiles.getTile(canvasId) : null; + return (showLoadingTile) ? loadingTiles.getTile(this.canvasId) : null; } getHistoricalChunk(cx, cy, fetch, historicalDate, historicalTime = null) {