Skip to content

Instantly share code, notes, and snippets.

@burritojustice
Last active December 23, 2016 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burritojustice/c65eeaee83e5d6041766fa93ab6ec54f to your computer and use it in GitHub Desktop.
Save burritojustice/c65eeaee83e5d6041766fa93ab6ec54f to your computer and use it in GitHub Desktop.
las vegas strip tron
license: mit
<!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 &copy; <a href="https://www.nps.gov">NPS</a>');
map.panTo([36.13,-115.15], {animate: true,duration: 100})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment