Revert changes to IIIFTileSource. Changes no longer needed for non square tiles

This commit is contained in:
Conner Wingard 2015-06-29 14:37:35 -04:00
parent 827fe4e836
commit 201ca8a422

View File

@ -117,6 +117,7 @@ $.extend( $.IIIFTileSource.prototype, $.TileSource.prototype, /** @lends OpenSea
* @param {Object|Array} data * @param {Object|Array} data
* @param {String} optional - url * @param {String} optional - url
*/ */
supports: function( data, url ) { supports: function( data, url ) {
// Version 2.0 and forwards // Version 2.0 and forwards
if (data.protocol && data.protocol == 'http://iiif.io/api/image') { if (data.protocol && data.protocol == 'http://iiif.io/api/image') {
@ -228,9 +229,8 @@ $.extend( $.IIIFTileSource.prototype, $.TileSource.prototype, /** @lends OpenSea
uri; uri;
tileSize = this.getTileSize(level); tileSize = this.getTileSize(level);
iiifTileSizeWidth = Math.ceil( tileSize / scale ); iiifTileSizeWidth = Math.ceil( tileSize / scale );
iiifTileSizeHeight = Math.ceil( tileSize / scale ); iiifTileSizeHeight = iiifTileSizeWidth;
if ( this['@context'].indexOf('/1.0/context.json') > -1 || if ( this['@context'].indexOf('/1.0/context.json') > -1 ||
this['@context'].indexOf('/1.1/context.json') > -1 || this['@context'].indexOf('/1.1/context.json') > -1 ||