From 890ec0c848fce0cf9ad3af97de134e82c42c3766 Mon Sep 17 00:00:00 2001 From: Jon Stroop Date: Tue, 17 Sep 2013 14:17:01 -0400 Subject: [PATCH] fixed size param --- src/iiif11tilesource.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/iiif11tilesource.js b/src/iiif11tilesource.js index bbef643d..2fd850fb 100644 --- a/src/iiif11tilesource.js +++ b/src/iiif11tilesource.js @@ -162,8 +162,9 @@ $.extend( $.IIIF11TileSource.prototype, $.TileSource.prototype, { // IIIF11TileSource), which will be more precise (i.e. the 'right // 50% of 11px' case') and easier to pre-bake without worring about // different browsers' decimal precision (if desired). - iiif_size = level_width + "," + level_height, + // iiif_size = level_width + "," + level_height, + iiif_size = this.tileSize + "," + this.tileSize, //## iiif region iiif_tile_size_width = Math.ceil( this.tileSize / scale ), @@ -174,7 +175,7 @@ $.extend( $.IIIF11TileSource.prototype, $.TileSource.prototype, { iiif_tile_w, iiif_tile_h; - + if ( level_width < this.tile_width && level_height < this.tile_height ){ iiif_region = 'full';