Built with blockbuilder.org
Last active
December 23, 2016 01:18
-
-
Save burritojustice/03761d9baf053b67e7f60b7c4bfdd44f to your computer and use it in GitHub Desktop.
lake mead usgs geology map pan
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
license: mit |
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 lang="en"> | |
<head> | |
<title>Lake Mead Geology Pan</title> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="https://mapzen.com/js/mapzen.css"> | |
<script src="https://mapzen.com/js/mapzen.min.js"></script> | |
<style> | |
#map { | |
height: 100%; | |
width: 100%; | |
position: absolute; | |
} | |
html,body{margin: 0; padding: 0} | |
</style> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script> | |
var center = [36.0,-115.3]; | |
var map = L.Mapzen.map('map', { | |
center: center, | |
zoom: 12, | |
scene: 'https://mapzen.com/api/scenes/22/111/resources/default.yaml', | |
}); | |
// Add attribution for NPS geology data | |
map.attributionControl.addAttribution('Geology data © <a href="https://www.nps.gov">NPS</a>'); | |
map.panTo([36.44,-114.15], {animate: true,duration: 500}) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment