Skip to content

Instantly share code, notes, and snippets.

@wboykinm
Created October 10, 2011 20:35
Show Gist options
  • Save wboykinm/1276441 to your computer and use it in GitHub Desktop.
Save wboykinm/1276441 to your computer and use it in GitHub Desktop.
MM Feature Debugger
<!DOCTYPE html>
<html>
<head>
<script src='http://www.geosprocket.com/mapbox-wax/ext/modestmaps.min.js' type='text/javascript'></script>
<script src='http://www.geosprocket.com/mapbox-wax/dist/wax.mm.js' type='text/javascript'></script>
<link href='http://www.geosprocket.com/mapbox-wax/theme/controls.css' rel='stylesheet' type='text/css' />
</head>
<body>
<div id="modestmaps-setup"></div>
<script>
var tilejson = {
tilejson: '1.0.0',
scheme: 'tms',
tiles: ['http://a.tiles.mapbox.com/landplanner/1.0.0/btv_nightvision_100611/{z}/{x}/{y}.png']
};
var mm = com.modestmaps;
var m = new mm.Map('modestmaps-setup',
new wax.mm.connector(tilejson),
new mm.Point(1020,600));
wax.mm.zoomer(m, tilejson).appendTo(m.parent);
wax.mm.interaction(m, tilejson);
//wax.mm.hash(map);
wax.mm.fullscreen(m, tilejson).appendTo(m.parent);
wax.mm.attribution(m, tilejson).appendTo(m.parent);
m.setCenterZoom(new mm.Location(44.49, -73.2), 14);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment