From 0810d97b6975466a388ce8f5413e46fde9e0abc5 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Tue, 19 Mar 2019 08:39:01 +0100 Subject: [PATCH] no direct support for formatHints --- src/iiiftilesource.js | 8 -------- src/tilesource.js | 6 ------ 2 files changed, 14 deletions(-) diff --git a/src/iiiftilesource.js b/src/iiiftilesource.js index 54f744f8..0e9f53b8 100644 --- a/src/iiiftilesource.js +++ b/src/iiiftilesource.js @@ -56,14 +56,6 @@ $.IIIFTileSource = function( options ){ options.tileSizePerScaleFactor = {}; this.usedFormat = "jpg"; - if ( this.formatHints ) { - for (var f = 0; f < this.formatHints.length; f++ ) { - if ( $.imageFormatSupported(this.formatHints[f]) ) { - this.usedFormat = this.formatHints[f]; - break; - } - } - } // N.B. 2.0 renamed scale_factors to scaleFactors if ( this.tile_width && this.tile_height ) { diff --git a/src/tilesource.js b/src/tilesource.js index cda10d7a..d85f5ee6 100644 --- a/src/tilesource.js +++ b/src/tilesource.js @@ -69,11 +69,6 @@ * the XHR's withCredentials (for accessing secure data). * @param {Object} [options.ajaxHeaders] * A set of headers to include in AJAX requests. - * @param {Object} [options.formatHints] - * An array of extensions to use for image URLs, by descending order of - * preference. The extensions are tested against the supported formats, - * in case none of the extension values is supported, the default (jpg) - * will be used. * @param {Number} [options.width] * Width of the source image at max resolution in pixels. * @param {Number} [options.height] @@ -223,7 +218,6 @@ $.TileSource = function( width, height, tileSize, tileOverlap, minLevel, maxLeve } this.tileOverlap = options.tileOverlap ? options.tileOverlap : 0; - this.formatHints = options.formatHints; this.minLevel = options.minLevel ? options.minLevel : 0; this.maxLevel = ( undefined !== options.maxLevel && null !== options.maxLevel ) ? options.maxLevel : (