mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 22:56:11 +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 (!isNaN(cf) && cf > mf) { mf = cf; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( mf < 0 ) {
|
if ( mf < 0 ) { options.maxLevel = Number(Math.ceil(Math.log(Math.max(this.width, this.height ), 2))); }
|
||||||
options.maxLevel = Number(Math.ceil(Math.log(Math.max(this.width, this.height ), 2)));
|
else { options.maxLevel = mf; }
|
||||||
} else {
|
|
||||||
options.maxLevel = mf;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$.TileSource.apply( this, [ options ] );
|
$.TileSource.apply( this, [ options ] );
|
||||||
|
Loading…
Reference in New Issue
Block a user