mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Update iiiftilesource.js
This commit is contained in:
parent
040ff3a7ae
commit
acd55c709d
@ -74,11 +74,8 @@ $.IIIFTileSource = function( options ){
|
||||
if (!isNaN(cf) && cf > mf) { mf = cf; }
|
||||
}
|
||||
}
|
||||
if ( mf < 0 ) {
|
||||
options.maxLevel = Number(Math.ceil(Math.log(Math.max(this.width, this.height ), 2)));
|
||||
} else {
|
||||
options.maxLevel = mf;
|
||||
}
|
||||
if ( mf < 0 ) { options.maxLevel = Number(Math.ceil(Math.log(Math.max(this.width, this.height ), 2))); }
|
||||
else { options.maxLevel = mf; }
|
||||
}
|
||||
|
||||
$.TileSource.apply( this, [ options ] );
|
||||
|
Loading…
Reference in New Issue
Block a user