forked from ppfun/pixelplanet
serve tiles without shard
This commit is contained in:
parent
3f2bb8c530
commit
d224c92eea
|
@ -305,7 +305,7 @@ class ChunkLoader {
|
||||||
this.store.dispatch(requestBigChunk(center));
|
this.store.dispatch(requestBigChunk(center));
|
||||||
try {
|
try {
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
const url = `${shardOrigin}/tiles/${this.canvasId}/${zoom}/${cx}/${cy}.webp`;
|
const url = `/tiles/${this.canvasId}/${zoom}/${cx}/${cy}.webp`;
|
||||||
const img = await loadImage(url);
|
const img = await loadImage(url);
|
||||||
chunkRGB.fromImage(img);
|
chunkRGB.fromImage(img);
|
||||||
this.store.dispatch(receiveBigChunk(center));
|
this.store.dispatch(receiveBigChunk(center));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user