From d18a4c3fd734e03391ef15174ea31981d91615ce Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Sat, 8 Apr 2023 16:48:04 +0200 Subject: [PATCH] mark tile.exists so that the retired tiles appear. --- src/imageloader.js | 4 ++-- src/tiledimage.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/imageloader.js b/src/imageloader.js index 365c5c79..990f202b 100644 --- a/src/imageloader.js +++ b/src/imageloader.js @@ -62,7 +62,7 @@ $.ImageJob = function(options) { /** * Data object which will contain downloaded image data. - * @member {Image|*} image data object, by default an Image object (depends on TileSource) + * @member {Image|*} data data object, by default an Image object (depends on TileSource) * @memberof OpenSeadragon.ImageJob# */ this.data = null; @@ -234,7 +234,7 @@ $.ImageLoader.prototype = { * @param callback - Called once cleanup is finished. */ function completeJob(loader, job, callback) { - if (job.errorMsg !== '' && (job.image === null || job.image === undefined) && job.tries < 1 + loader.tileRetryMax) { + if (job.errorMsg !== '' && (job.data === null || job.data === undefined) && job.tries < 1 + loader.tileRetryMax) { loader.failedTiles.push(job); } var nextJob; diff --git a/src/tiledimage.js b/src/tiledimage.js index 3d7530b8..7ed39f31 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -1621,6 +1621,8 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag tile.loading = false; tile.exists = false; return; + } else { + tile.exists = true; } if ( time < this.lastResetTime ) {