Last active
December 31, 2015 10:59
-
-
Save eyeseast/7976795 to your computer and use it in GitHub Desktop.
A streets map.
This file contains hidden or 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> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no'> | |
<meta charset="utf-8"> | |
<title>wnyc-streets-us</title> | |
<link href="//api.tiles.mapbox.com/mapbox.js/v1.5.2/mapbox.css" rel="stylesheet"> | |
<script src="//api.tiles.mapbox.com/mapbox.js/v1.5.2/mapbox.js"></script> | |
<style type="text/css"> | |
html, | |
body, | |
#map { | |
height: 100%; | |
width: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script type="text/javascript"> | |
var map = L.mapbox.map('map', 'mapbox.natural-earth-hypso-bathy'); | |
var streets = L.tileLayer('https://wnyc-streets-us.s3.amazonaws.com/{z}/{x}/{y}.png', {maxZoom: 13}) | |
.addTo(map); | |
map.setView([41, -73], 7); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment