Created
October 3, 2012 00:15
-
-
Save willwhite/3824160 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> | |
var url = 'http://api.tiles.mapbox.com/v3/mapbox.geography-class.jsonp'; | |
wax.tilejson(url, function(tilejson) { | |
var map = new MM.Map('map', new wax.mm.connector(tilejson)); | |
wax.mm.interaction() | |
.map(map) | |
.tilejson(tilejson) | |
.on(wax.tooltip().animate(true).parent(map.parent).events()); | |
map.setCenterZoom({ lat: 39, lon: -98 }, 1); | |
} | |
); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment