-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
30 lines (26 loc) · 953 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src='wax/ext/modestmaps.min.js' type='text/javascript'></script>
<script src='wax/dist/wax.mm.js' type='text/javascript'></script>
<link href='wax/theme/controls.css' rel='stylesheet' type='text/css' />
<title>Santa Cruz Map</title>
</head>
<body>
<script>
var url = 'http://a.tiles.mapbox.com/v3/matth.map-0skgrs85.jsonp';
wax.tilejson(url, function(tilejson) {
var m = new MM.Map('intro-map',
new wax.mm.connector(tilejson),
new MM.Point(700,400));
m.setCenterZoom(new MM.Location(tilejson.center[1],
tilejson.center[0]),
tilejson.center[2] - 3);
wax.mm.zoomer(m).appendTo(m.parent);
wax.mm.interaction(m);
});
</script>
<div id='intro-map'></div>
</body>
</html>