Skip to content

Instantly share code, notes, and snippets.

@dhcole
Created January 10, 2012 19:53
Show Gist options
  • Save dhcole/1590814 to your computer and use it in GitHub Desktop.
Save dhcole/1590814 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link href='http://mapbox.com/wax/css/controls.css' rel='stylesheet' type='text/css' />
</head>
<body>
<div id="map"></div>
<!-- scripts-->
<script src='http://mapbox.com/wax/dist/modestmaps.js' type='text/javascript'></script>
<script src='http://mapbox.com/wax/dist/wax.mm.min.js' type='text/javascript'></script>
<!-- end scripts-->
<script type="text/javascript">
var tilejson = {
tilejson: '1.0.0',
scheme: 'xyz',
maxzoom: 7,
tiles: ['http://media.washingtonpost.com/wp-srv/special/cartography/tilesets/cultural/reference/basic/{z}_{x}_{y}.gif']
},
mm = com.modestmaps,
m = new mm.Map('map',
new wax.mm.connector(tilejson),
new mm.Point(800,400)
);
m.setCenterZoom(new mm.Location(39, -98), 2);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment