<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Disable zooming and panning</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>
// Create map
var layer = mapbox.layer().id('examples.map-zgrqqx0w');
// Create map with no handlers
// The 4th argument is a list of handlers (drag, mousewheel, doubleclick).
// Here we have it empty, to disable zooming and panning.
var map = mapbox.map('map', layer, null, []);
map.centerzoom({lat: 43.6, lon: -79.4 }, 10);
// Attribute map
map.ui.attribution.add()
.content('<a href="http://mapbox.com/about/maps">Terms & Feedback</a>');
</script>