mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
address PR comments
This commit is contained in:
parent
3f91bafcf8
commit
db86ae28c8
@ -42,6 +42,8 @@
|
||||
* @memberof OpenSeadragon
|
||||
* @extends OpenSeadragon.TileSource
|
||||
* @see http://iiif.io/api/image/
|
||||
* @param {String} [options.tileFormat]
|
||||
* The extension that will be used when requiring tiles (defaults to "jpg").
|
||||
*/
|
||||
$.IIIFTileSource = function( options ){
|
||||
|
||||
@ -55,7 +57,7 @@ $.IIIFTileSource = function( options ){
|
||||
|
||||
options.tileSizePerScaleFactor = {};
|
||||
|
||||
this.tileFormat = "jpg";
|
||||
this.tileFormat = this.tileFormat || 'jpg';
|
||||
|
||||
// N.B. 2.0 renamed scale_factors to scaleFactors
|
||||
if ( this.tile_width && this.tile_height ) {
|
||||
|
Loading…
Reference in New Issue
Block a user