Fixed bug with passing single literal tilesource on construction

This commit is contained in:
Ian Gilman 2014-12-19 15:32:19 -08:00
parent ce8b0358ff
commit c9708399a1
2 changed files with 20 additions and 4 deletions

View File

@ -496,7 +496,7 @@ $.Viewer = function( options ) {
}
// Open initial tilesources
if ( this.tileSources && this.tileSources.length) {
if (this.tileSources) {
this.open( this.tileSources );
}

View File

@ -9,7 +9,7 @@
var testInitialOpen = true;
var testOverlays = false;
var testMargins = false;
var testNavigator = true;
var testNavigator = false;
var margins;
var config = {
@ -22,8 +22,8 @@
// referenceStripScroll: 'vertical',
navPrevNextWrap: false,
preserveViewport: false,
collectionMode: true,
collectionRows: 1,
// collectionMode: true,
// collectionRows: 1,
// collectionLayout: 'vertical',
// collectionTileSize: 10,
// collectionTileMargin: 10,
@ -33,6 +33,20 @@
prefixUrl: "../../../build/openseadragon/images/"
};
var highsmith = {
Image: {
xmlns: "http://schemas.microsoft.com/deepzoom/2008",
Url: "http://openseadragon.github.io/example-images/highsmith/highsmith_files/",
Format: "jpg",
Overlap: "2",
TileSize: "256",
Size: {
Height: "9221",
Width: "7026"
}
}
};
if (testInitialOpen) {
config.tileSources = [
{
@ -55,6 +69,8 @@
height: 1
}
];
// config.tileSources = highsmith;
}
if (testOverlays) {