From 1b44de3b68d254bc5a8773f3b9e6e99956f7bf23 Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 31 Jan 2024 15:37:09 -0500 Subject: [PATCH] Stop tiles from loading if opacity of tiled image is 0 --- src/tiledimage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index 0b1862a7..cb7dd778 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -1434,7 +1434,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag let lowestLevel = tiles.length ? tiles[0].level : 0; let drawArea = this.getDrawArea(); - if(!drawArea){ + if(!drawArea || this._opacity === 0){ return; }