-
Notifications
You must be signed in to change notification settings - Fork 39
/
example.html
37 lines (33 loc) · 1.04 KB
/
example.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Leaflet Zoomify Demo</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.ie.css" />
<![endif]-->
<style type="text/css">
html, body, #photo {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
</style>
</head>
<body>
<div id="photo"></div>
<script src="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js"></script>
<script type="text/javascript" src="L.TileLayer.Zoomify.js"></script>
<script type="text/javascript">
var map = L.map('photo').setView(new L.LatLng(0,0), 0);
L.tileLayer.zoomify('http://thematicmapping.org/playground/zoomify/books/', {
width: 5472,
height: 3648,
tolerance: 0.8,
attribution: 'Photo: Bjørn Sandvik'
}).addTo(map);
</script>
</body>
</html>