Skip to content

Instantly share code, notes, and snippets.

@yhahn
Created August 30, 2012 01:58
Show Gist options
  • Save yhahn/3521618 to your computer and use it in GitHub Desktop.
Save yhahn/3521618 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/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>
mapbox.auto('map', 'examples.map-4l7djmvo', function(map) {
map.setZoomRange(5,10);
map.center({lat:39,lon:-78});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment