From 820cdb90f8c7bffa33494781a2ca86eaf0f6dac2 Mon Sep 17 00:00:00 2001 From: abraham lam Date: Sun, 9 Aug 2020 21:33:17 -0400 Subject: [PATCH] tileSize is no longer hard corded in Zoomify Tile Source --- src/zoomifytilesource.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/zoomifytilesource.js b/src/zoomifytilesource.js index 743c2c1b..3cf48071 100644 --- a/src/zoomifytilesource.js +++ b/src/zoomifytilesource.js @@ -18,7 +18,7 @@ * 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) * @@ -44,7 +44,9 @@ * @param {String} tilesUrl */ $.ZoomifyTileSource = function(options) { - options.tileSize = 256; + if(options.tileSize === undefined){ + options.tileSize = 256; + } var currentImageSize = { x: options.width,