Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ViewerService.createZoomifyTilesource = function (images) {
if (typeof(images) !== 'undefined' && images.length>0) {
var tilesources = [];
for(var i=0;i<images.length;i++) {
var tilesource = {
type:"zoomifytileservice",
width: images[i].dimx,
height: images[i].dimy,]
x: 2*i,
y: 0,
tileSize:256,
tilesUrl: images[i].zoom
};
tilesources.push(tilesource);
}
var options = {
showNavigator: true,
//debugMode: true,
navigatorPosition: "TOP_RIGHT",
navigatorHeight: "120px",
navigatorWidth: "145px",
prefixUrl: "assets/images/openseadragon/",
tileSources: tilesources,
};
return options;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.