Merge pull request #1150 from Daniel-KM/feature/zoomify

Feature/zoomify
This commit is contained in:
Ian Gilman 2017-03-17 11:00:19 -07:00 committed by GitHub
commit f86848f965
3 changed files with 40 additions and 2 deletions

View File

@ -318,7 +318,7 @@ $.TileSource.prototype = {
/**
* @function
* @param {Number} level
* @param {Rect} rect
*/
getClosestLevel: function( rect ) {
var i,

View File

@ -18,7 +18,7 @@
* tilesUrl: "/test/data/zoomify/"
* }
*
* The tileSize is currently hardcoded to 256 (the usual Zoomify default). The tileUrl must the the path to the image _directory_.
* The tileSize is currently hardcoded to 256 (the usual Zoomify default). The tileUrl must the path to the image _directory_.
*
* 2) Loading image metadata from xml file: (CURRENTLY NOT SUPPORTED)
*

38
test/demo/zoomify.html Normal file
View File

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenSeadragon Zoomify Demo</title>
<script type="text/javascript" src='../../build/openseadragon/openseadragon.js'></script>
<script type="text/javascript" src='../lib/jquery-1.9.1.min.js'></script>
<style type="text/css">
.openseadragon1 {
width: 800px;
height: 600px;
}
</style>
</head>
<body>
<div>
Simple demo page to show a default OpenSeadragon viewer with a Zoomify tile source.
</div>
<div id="contentDiv" class="openseadragon1"></div>
<script type="text/javascript">
var viewer = OpenSeadragon({
debugMode: true,
id: "contentDiv",
prefixUrl: "../../build/openseadragon/images/",
tileSources: [{
type: "zoomifytileservice",
width: 1000,
height: 1000,
tilesUrl: "../data/zoomify/"
}],
showNavigator:true
});
</script>
</body>
</html>