-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHE.html
38 lines (38 loc) · 1.15 KB
/
HE.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<meta charset="utf-8"/>
<div id="openseadragon1" style="width: 100%; height: 95%;"></div>
<script src="./openseadragon/openseadragon.min.js"></script>
<script src="openseadragon/openseadragon-scalebar.js"></script> <!-- for scalebar -->
<script type="text/javascript">
var viewer = OpenSeadragon({
id: 'openseadragon1',
prefixUrl : './openseadragon/images/',
showHomeControl : false, // optional
showRotationControl : true, // optional
showNavigator : true, // optional
showFlipControl: true, // optional
navigatorBackground: 'rgb(240, 240, 240)', // optional
tileSources: {
Image: {
Url: './HE_files/', // name of image folder
TileSize: '254', // see .dzi file
Overlap: '1', // see .dzi file
Format: 'jpeg', // see .dzi file
ServerFormat: 'Default', // optional
xmlns: 'http://schemas.microsoft.com/deepzoom/2009', // see .dzi file
Size: {
Width: '51792', // see .dzi file
Height: '30580' // see .dzi file
}
}}});
// for scalebar
viewer.scalebar({
minWidth: '100px',
pixelsPerMeter : '1.98255e+06',
fontFamily : 'Arial',
backgroundColor : 'rgba(255, 255, 255, 0.5)',
fontSize : 'small',
barThickness : '2',
xOffset : '10',
yOffset : '10'
});
</script>