diff --git a/src/dzitilesource.js b/src/dzitilesource.js index ec5ea9a9..ee862f0d 100644 --- a/src/dzitilesource.js +++ b/src/dzitilesource.js @@ -182,6 +182,10 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, /** @lends OpenSead yMax, i; + if ((this.minLevel && level < this.minLevel) || (this.maxLevel && level > this.maxLevel)) { + return false; + } + if ( !rects || !rects.length ) { return true; } diff --git a/src/tiledimage.js b/src/tiledimage.js index 6fb68413..563dfc89 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -972,6 +972,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag // Calculations for the interval of levels to draw // can return invalid intervals; fix that here if necessary + highestLevel = Math.max(highestLevel, this.source.minLevel); lowestLevel = Math.min(lowestLevel, highestLevel); return { lowestLevel: lowestLevel,