diff --git a/src/tiledimage.js b/src/tiledimage.js index b350063f..c8e563a9 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -1346,7 +1346,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 || 0); + highestLevel = Math.max(highestLevel || 0, this.source.minLevel || 0); lowestLevel = Math.min(lowestLevel, highestLevel); return { lowestLevel: lowestLevel,