mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 08:36:10 +03:00
tileSize is no longer hard corded in Zoomify Tile Source
This commit is contained in:
parent
84dd5cd6a7
commit
820cdb90f8
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user