mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-26 07:06: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 {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 ||
|
||||||
|
Loading…
Reference in New Issue
Block a user