Skip to content

Instantly share code, notes, and snippets.

@burritojustice
Last active December 23, 2016 08:36
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/30be9a75d1aa821b74a9ea51a91d39df to your computer and use it in GitHub Desktop.
Save burritojustice/30be9a75d1aa821b74a9ea51a91d39df to your computer and use it in GitHub Desktop.
nyc
license: mit
<!DOCTYPE html>
<html lang="en">
<head>
<title>NYC Tron Pan z17</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>
// 56th st
var center = [40.76765,-73.97572];
var map = L.Mapzen.map('map', {
center: center,
zoom: 18,
scene: 'https://mapzen.com/carto/tron-style-more-labels/tron-style-more-labels.zip',
});
// wall street
map.panTo([40.70394,-74.01102], {animate: true,duration: 800})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment