mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Fixed bug with passing single literal tilesource on construction
This commit is contained in:
parent
ce8b0358ff
commit
c9708399a1
@ -496,7 +496,7 @@ $.Viewer = function( options ) {
|
||||
}
|
||||
|
||||
// Open initial tilesources
|
||||
if ( this.tileSources && this.tileSources.length) {
|
||||
if (this.tileSources) {
|
||||
this.open( this.tileSources );
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user