2023-05-23 10:27:32 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>OpenSeadragon Basic 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. The navigator region is expected to rotate when the image is rotated.
|
|
|
|
The default behaviour is to keep the region still as the image below it rotates.
|
|
|
|
</div>
|
|
|
|
<div id="contentDiv" class="openseadragon1"></div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var viewer = OpenSeadragon({
|
|
|
|
// debugMode: true,
|
|
|
|
id: "contentDiv",
|
|
|
|
prefixUrl: "../../build/openseadragon/images/",
|
|
|
|
tileSources: "../data/testpattern.dzi",
|
|
|
|
showNavigator: true,
|
|
|
|
navigatorRotate: false
|
|
|
|
});
|
2023-05-24 09:45:15 +03:00
|
|
|
viewer.viewport.setRotation(45)
|
2023-05-23 10:27:32 +03:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|