Created
February 23, 2016 12:06
-
-
Save foobarable/72ba3e25d55707daa7ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ViewerService.createZoomifyTilesource = function (images) { | |
if (images) { | |
console.log(images); | |
var tilesources = []; | |
for(var i=0;i<images.length;i++) { | |
var tilesource = { | |
type:"zoomifytileservice", | |
width: images[i].dimx, | |
height: images[i].dimy, | |
tileSize:256, | |
tilesUrl: images[i].zoom}; | |
tilesources.push(tilesource); | |
} | |
var options = { | |
collectionMode: true, | |
collectionRows: 6, | |
collectionTileSize: 1024, | |
collectionTileMargin: 256, | |
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