From 201ca8a422c952f884b95f7a9a4a1f1cb31bb879 Mon Sep 17 00:00:00 2001 From: Conner Wingard Date: Mon, 29 Jun 2015 14:37:35 -0400 Subject: [PATCH] Revert changes to IIIFTileSource. Changes no longer needed for non square tiles --- src/iiiftilesource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iiiftilesource.js b/src/iiiftilesource.js index e053eab2..b54d020b 100644 --- a/src/iiiftilesource.js +++ b/src/iiiftilesource.js @@ -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 ||