Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created February 6, 2013 23:22
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 tmcw/4726821 to your computer and use it in GitHub Desktop.
Save tmcw/4726821 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/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', 'absolutetravel.map-wjhb8xsw', function(map) {
// set zoom limits
map.setZoomRange(2, 8);
// set default zoom level
map.auto();
map.eventHandlers[3].remove();
map.centerzoom({lat: 43.6, lon: -79.4 }, 2);
map.ui.attribution.add()
.content('<a href="http://mapbox.com/about/maps">Terms &amp; Feedback</a>');
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment