mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Revert changes to IIIFTileSource. Changes no longer needed for non square tiles
This commit is contained in:
parent
827fe4e836
commit
201ca8a422
@ -117,6 +117,7 @@ $.extend( $.IIIFTileSource.prototype, $.TileSource.prototype, /** @lends OpenSea
|
||||
* @param {Object|Array} data
|
||||
* @param {String} optional - url
|
||||
*/
|
||||
|
||||
supports: function( data, url ) {
|
||||
// Version 2.0 and forwards
|
||||
if (data.protocol && data.protocol == 'http://iiif.io/api/image') {
|
||||
@ -228,9 +229,8 @@ $.extend( $.IIIFTileSource.prototype, $.TileSource.prototype, /** @lends OpenSea
|
||||
uri;
|
||||
|
||||
tileSize = this.getTileSize(level);
|
||||
|
||||
iiifTileSizeWidth = Math.ceil( tileSize / scale );
|
||||
iiifTileSizeHeight = Math.ceil( tileSize / scale );
|
||||
iiifTileSizeHeight = iiifTileSizeWidth;
|
||||
|
||||
if ( this['@context'].indexOf('/1.0/context.json') > -1 ||
|
||||
this['@context'].indexOf('/1.1/context.json') > -1 ||
|
||||
|
Loading…
Reference in New Issue
Block a user