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
|
// Open initial tilesources
|
||||||
if ( this.tileSources && this.tileSources.length) {
|
if (this.tileSources) {
|
||||||
this.open( this.tileSources );
|
this.open( this.tileSources );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
var testInitialOpen = true;
|
var testInitialOpen = true;
|
||||||
var testOverlays = false;
|
var testOverlays = false;
|
||||||
var testMargins = false;
|
var testMargins = false;
|
||||||
var testNavigator = true;
|
var testNavigator = false;
|
||||||
var margins;
|
var margins;
|
||||||
|
|
||||||
var config = {
|
var config = {
|
||||||
@ -22,8 +22,8 @@
|
|||||||
// referenceStripScroll: 'vertical',
|
// referenceStripScroll: 'vertical',
|
||||||
navPrevNextWrap: false,
|
navPrevNextWrap: false,
|
||||||
preserveViewport: false,
|
preserveViewport: false,
|
||||||
collectionMode: true,
|
// collectionMode: true,
|
||||||
collectionRows: 1,
|
// collectionRows: 1,
|
||||||
// collectionLayout: 'vertical',
|
// collectionLayout: 'vertical',
|
||||||
// collectionTileSize: 10,
|
// collectionTileSize: 10,
|
||||||
// collectionTileMargin: 10,
|
// collectionTileMargin: 10,
|
||||||
@ -33,6 +33,20 @@
|
|||||||
prefixUrl: "../../../build/openseadragon/images/"
|
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) {
|
if (testInitialOpen) {
|
||||||
config.tileSources = [
|
config.tileSources = [
|
||||||
{
|
{
|
||||||
@ -55,6 +69,8 @@
|
|||||||
height: 1
|
height: 1
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// config.tileSources = highsmith;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (testOverlays) {
|
if (testOverlays) {
|
||||||
|
Loading…
Reference in New Issue
Block a user