small fixes, remove tile filename logging again

This commit is contained in:
HF 2022-06-23 15:50:30 +02:00
parent 6af7be7794
commit aa8fc86bc9
2 changed files with 1 additions and 3 deletions

View File

@ -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;

View File

@ -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) {