small fixes, remove tile filename logging again
This commit is contained in:
parent
6af7be7794
commit
aa8fc86bc9
|
@ -237,7 +237,6 @@ export async function createZoomedTile(
|
||||||
for (let dx = 0; dx < TILE_ZOOM_LEVEL; dx += 1) {
|
for (let dx = 0; dx < TILE_ZOOM_LEVEL; dx += 1) {
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
const chunkfile = `${canvasTileFolder}/${z + 1}/${x * TILE_ZOOM_LEVEL + dx}/${y * TILE_ZOOM_LEVEL + dy}.png`;
|
const chunkfile = `${canvasTileFolder}/${z + 1}/${x * TILE_ZOOM_LEVEL + dx}/${y * TILE_ZOOM_LEVEL + dy}.png`;
|
||||||
console.log(chunkfile);
|
|
||||||
if (!fs.existsSync(chunkfile)) {
|
if (!fs.existsSync(chunkfile)) {
|
||||||
na.push([dx, dy]);
|
na.push([dx, dy]);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -181,7 +181,6 @@ class ChunkLoader {
|
||||||
) {
|
) {
|
||||||
const chunkKey = `${zoom}:${cx}:${cy}`;
|
const chunkKey = `${zoom}:${cx}:${cy}`;
|
||||||
let chunkRGB = this.chunks.get(chunkKey);
|
let chunkRGB = this.chunks.get(chunkKey);
|
||||||
const { canvasId } = this;
|
|
||||||
if (chunkRGB) {
|
if (chunkRGB) {
|
||||||
if (chunkRGB.ready) {
|
if (chunkRGB.ready) {
|
||||||
return chunkRGB.image;
|
return chunkRGB.image;
|
||||||
|
@ -200,7 +199,7 @@ class ChunkLoader {
|
||||||
const preLoad = this.preLoadChunk(zoom, cx, cy, chunkRGB);
|
const preLoad = this.preLoadChunk(zoom, cx, cy, chunkRGB);
|
||||||
if (preLoad) return preLoad;
|
if (preLoad) return preLoad;
|
||||||
}
|
}
|
||||||
return (showLoadingTile) ? loadingTiles.getTile(canvasId) : null;
|
return (showLoadingTile) ? loadingTiles.getTile(this.canvasId) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
getHistoricalChunk(cx, cy, fetch, historicalDate, historicalTime = null) {
|
getHistoricalChunk(cx, cy, fetch, historicalDate, historicalTime = null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user