Stop tiles from loading if opacity of tiled image is 0

This commit is contained in:
Tom 2024-01-31 15:37:09 -05:00
parent f9a8b97cf9
commit 1b44de3b68

View File

@ -1434,7 +1434,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
let lowestLevel = tiles.length ? tiles[0].level : 0; let lowestLevel = tiles.length ? tiles[0].level : 0;
let drawArea = this.getDrawArea(); let drawArea = this.getDrawArea();
if(!drawArea){ if(!drawArea || this._opacity === 0){
return; return;
} }