From 071b8657651a0585b260b64aa356ca63c816463f Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Fri, 6 Jul 2018 13:17:46 -0700 Subject: [PATCH] Tweaks to minLevel DZI patch --- changelog.txt | 3 ++- src/tiledimage.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index e2eceb7a..302b3702 100644 --- a/changelog.txt +++ b/changelog.txt @@ -19,7 +19,8 @@ OPENSEADRAGON CHANGELOG * You can now prevent canvas-drag events on the navigator (#1484) * You can now prevent canvas-click events on the navigator (#1416) * The navigator can now be restricted to just horizontal or just vertical panning (#1416) - +* Fixed DziTileSource so it doesn't load levels above maxLevel or below minLevel, if set (#1492) + 2.3.1: * Debug mode now uses different colors for different tiled images (customizable via debugGridColor) (#1271) diff --git a/src/tiledimage.js b/src/tiledimage.js index 563dfc89..52012071 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -972,7 +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); + highestLevel = Math.max(highestLevel, this.source.minLevel || 0); lowestLevel = Math.min(lowestLevel, highestLevel); return { lowestLevel: lowestLevel,