Last active
August 29, 2015 14:28
-
-
Save nateirwin/e12182179d9d47beed2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"> | |
<title>Zoomify Layer | Examples | NPMap.js</title> | |
<link href="zoomify-layer.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script src="zoomify-layer.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 0; | |
padding: 0; | |
} | |
#map { | |
bottom: 0; | |
position: absolute; | |
top: 0; | |
width: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NPMap = { | |
baseLayers: [{ | |
attribution: 'Harpers Ferry Center', | |
height: 6738, | |
type: 'zoomify', | |
url: 'http://www.nps.gov/parkmaps/yell/img/', | |
width: 5069 | |
}], | |
div: 'map' | |
}; | |
(function () { | |
var s = document.createElement('script'); | |
s.src = 'http://www.nps.gov/lib/npmap.js/2.0.0/npmap-bootstrap.js'; | |
document.body.appendChild(s); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment