Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@willwhite
Created October 5, 2012 15:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willwhite/3840624 to your computer and use it in GitHub Desktop.
Save willwhite/3840624 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.6/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.6/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>
// If you're creating a new interactive layer, follow the tooltips docs:
// http://mapbox.com/tilemill/docs/crashcourse/tooltips/
mapbox.load('examples.map-8ced9urs', function(o) {
var map = mapbox.map('map');
map.addLayer(o.layer).zoom(3).center({ lat: 48, lon: -100 });
map.interaction.auto().off('on').off('off').on(wax.movetip().parent(map.parent).events());
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment