From 6f9e59c15649ae4632e01f18839fd2a52a360370 Mon Sep 17 00:00:00 2001 From: Michael Gibson Date: Mon, 10 Feb 2025 10:37:54 -0700 Subject: [PATCH] event --- src/tiledimage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index 18987863..d5e1985b 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -1442,6 +1442,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag } unloaded.slice(0, 50).forEach(tile => { + console.log("loading tile x,y,level", tile.x, tile.y, tile.level, tile.getUrl()); this._loadTile(tile, currentTime); }); @@ -1453,7 +1454,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag // Load the new 'best' n tiles - if (bestTiles && bestTiles.length > 0) { + if (unloaded && unloaded.length > 0) { this._needsDraw = true; return false; } else {