mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Making the DziTileSource honor minLevel.
This commit is contained in:
parent
68d08d8748
commit
452e50c8d8
@ -182,6 +182,10 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, /** @lends OpenSead
|
|||||||
yMax,
|
yMax,
|
||||||
i;
|
i;
|
||||||
|
|
||||||
|
if ((this.minLevel && level < this.minLevel) || (this.maxLevel && level > this.maxLevel)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if ( !rects || !rects.length ) {
|
if ( !rects || !rects.length ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -972,6 +972,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
|
|
||||||
// Calculations for the interval of levels to draw
|
// Calculations for the interval of levels to draw
|
||||||
// can return invalid intervals; fix that here if necessary
|
// can return invalid intervals; fix that here if necessary
|
||||||
|
highestLevel = Math.max(highestLevel, this.source.minLevel);
|
||||||
lowestLevel = Math.min(lowestLevel, highestLevel);
|
lowestLevel = Math.min(lowestLevel, highestLevel);
|
||||||
return {
|
return {
|
||||||
lowestLevel: lowestLevel,
|
lowestLevel: lowestLevel,
|
||||||
|
Loading…
Reference in New Issue
Block a user