Viewing an older version of mapbox.js. Check out v1.4.0 for the latest.

Creating a map with auto

One line of code that initializes a map with controls and content
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Creating a map with auto</title>
  <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', 'examples.map-zr0njcqy');
</script>
The code and documentation to mapbox.js is hosted on GitHub where you can contribute changes and improvements.