Skip to content

Instantly share code, notes, and snippets.

@bsudekum
Created April 25, 2013 22:10
Show Gist options
  • Save bsudekum/5463648 to your computer and use it in GitHub Desktop.
Save bsudekum/5463648 to your computer and use it in GitHub Desktop.
Craigslist Tiles
<!DOCTYPE html>
<html>
<head>
<title>Craigslist Tiles</title>
<meta charset='utf-8' />
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.0.1/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.1/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<div id='map'></div>
<script>
var map = L.mapbox.map('map').setView([37.7804, -122.4291], 13);
L.tileLayer('http://map{s}.craigslist.org/t03/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: 'Craigslist',
subdomains: '12345678'
}).addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment