Fixed worker path problems.

This commit is contained in:
2019-07-04 09:17:43 +02:00
parent da212ac188
commit 4e9dd2fa02
8 changed files with 260 additions and 67 deletions
+4 -3
View File
@@ -48,10 +48,11 @@ export class Tiles extends PIXI.Container {
this.tileScale = scale
this.fadeInTime = fadeInTime
this.keep = false
if (this.view.preferWorker && view.info.compression.length > 0)
this.loader = new WorkerTileLoader(this)
else
if (this.view.useWorker && view.info.compression && view.info.compression.length > 0) {
this.loader = new WorkerTileLoader(this, this.view.useWorker)
} else {
this.loader = new PIXITileLoader(this, view.info.compression)
}
this.interactive = false
this._highlight = null