Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (28 sloc) 0.908 kb
<html>
<head>
<title>b demo</title>
<script src='../ext/modestmaps.min.js' type='text/javascript'></script>
<script src='../dist/wax.mm.js' type='text/javascript'></script>
<link href='../theme/controls.css' rel='stylesheet' type='text/css' />
<style>
#map_canvas {
position:absolute;
width:800px;
height:600px;
}
</style>
</head>
<body>
<div id='map_canvas'></div>
<script type="text/javascript">
wax.tilejson('http://c.tiles.mapbox.com/v3/tmcw.map-2sdcp6um.jsonp', function(tilejson) {
map = new MM.Map('map_canvas', new wax.mm.connector(tilejson));
map.setCenterZoom(new MM.Location(tilejson.center[1], tilejson.center[0]), tilejson.center[2] + 3);
inter = wax.mm.interaction()
.map(map)
.tilejson(tilejson)
.on(wax.tooltip().parent(map.parent).animate(true).events());
});
</script>
</div>
</body>
Jump to Line
Something went wrong with that request. Please try again.