Built with blockbuilder.org
forked from burritojustice's block: lake mead usgs geology map pan
license: mit |
Built with blockbuilder.org
forked from burritojustice's block: lake mead usgs geology map pan
<!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.07,-115.1454]; | |
var map = L.Mapzen.map('map', { | |
center: center, | |
zoom: 15, | |
scene: 'https://mapzen.com/carto/tron-style-more-labels/tron-style-more-labels.zip', | |
}); | |
// Add attribution for NPS geology data | |
map.attributionControl.addAttribution('Geology data © <a href="https://www.nps.gov">NPS</a>'); | |
map.panTo([36.13,-115.15], {animate: true,duration: 100}) | |
</script> | |
</body> | |
</html> |