Skip to content

Instantly share code, notes, and snippets.

@srdjan-m
Last active June 6, 2016 10:23
Show Gist options
  • Save srdjan-m/01578d4ad1c24c37982f to your computer and use it in GitHub Desktop.
Save srdjan-m/01578d4ad1c24c37982f to your computer and use it in GitHub Desktop.
leaflet: template (http://leafletjs.com)
<!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="js/L.TileLayer.Zoomify.js"></script>
<script type="text/javascript">
var map = L.map('photo').setView(new L.LatLng(0,0), 0);
L.tileLayer.zoomify('./', {
width: 7038,
height: 3005,
tolerance: 0.8,
attribution: 'Design: Srdjan Markovic'
}).addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment