tileSize is no longer hard corded in Zoomify Tile Source

This commit is contained in:
abraham lam 2020-08-09 21:33:17 -04:00
parent 84dd5cd6a7
commit 820cdb90f8

View File

@ -18,7 +18,7 @@
* tilesUrl: "/test/data/zoomify/" * tilesUrl: "/test/data/zoomify/"
* } * }
* *
* The tileSize is currently hardcoded to 256 (the usual Zoomify default). The tileUrl must the path to the image _directory_. * The tileSize is set to 256 (the usual Zoomify default) when it is not defined. The tileUrl must the path to the image _directory_.
* *
* 2) Loading image metadata from xml file: (CURRENTLY NOT SUPPORTED) * 2) Loading image metadata from xml file: (CURRENTLY NOT SUPPORTED)
* *
@ -44,7 +44,9 @@
* @param {String} tilesUrl * @param {String} tilesUrl
*/ */
$.ZoomifyTileSource = function(options) { $.ZoomifyTileSource = function(options) {
if(options.tileSize === undefined){
options.tileSize = 256; options.tileSize = 256;
}
var currentImageSize = { var currentImageSize = {
x: options.width, x: options.width,