mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
Merge pull request #586 from jpstroop/iiif_use_full
Correct IIIF tile source to use canonical syntax
This commit is contained in:
commit
dfe465f79e
@ -216,6 +216,7 @@ $.extend( $.IIIFTileSource.prototype, $.TileSource.prototype, /** @lends OpenSea
|
||||
levelHeight = Math.ceil( this.height * scale ),
|
||||
|
||||
//## iiif region
|
||||
tileSize,
|
||||
iiifTileSizeWidth,
|
||||
iiifTileSizeHeight,
|
||||
iiifRegion,
|
||||
@ -227,7 +228,8 @@ $.extend( $.IIIFTileSource.prototype, $.TileSource.prototype, /** @lends OpenSea
|
||||
iiifQuality,
|
||||
uri;
|
||||
|
||||
iiifTileSizeWidth = Math.ceil( this.getTileSize(level) / scale );
|
||||
tileSize = this.getTileSize(level);
|
||||
iiifTileSizeWidth = Math.ceil( tileSize / scale );
|
||||
iiifTileSizeHeight = iiifTileSizeWidth;
|
||||
|
||||
if ( this['@context'].indexOf('/1.0/context.json') > -1 ||
|
||||
@ -238,7 +240,7 @@ $.extend( $.IIIFTileSource.prototype, $.TileSource.prototype, /** @lends OpenSea
|
||||
iiifQuality = "default.jpg";
|
||||
}
|
||||
|
||||
if ( levelWidth < this.tile_width && levelHeight < this.tile_height ){
|
||||
if ( levelWidth < tileSize && levelHeight < tileSize ){
|
||||
iiifSize = levelWidth + ",";
|
||||
iiifRegion = 'full';
|
||||
} else {
|
||||
@ -256,6 +258,7 @@ $.extend( $.IIIFTileSource.prototype, $.TileSource.prototype, /** @lends OpenSea
|
||||
|
||||
});
|
||||
|
||||
|
||||
function configureFromXml10(xmlDoc) {
|
||||
//parse the xml
|
||||
if ( !xmlDoc || !xmlDoc.documentElement ) {
|
||||
|
Loading…
Reference in New Issue
Block a user