-
Notifications
You must be signed in to change notification settings - Fork 152
/
index.html
25 lines (24 loc) · 990 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
<html>
<head>
<title>Modest Maps JS</title>
<script type="text/javascript" src="../../modestmaps.js"></script>
<script type="text/javascript" src="tilecache.js"></script>
<script type="text/javascript">
var map;
function initMap() {
// "import" the namespace
var mm = com.modestmaps;
var provider = new mm.TileCacheMapProvider('http://bucket.root.cnet.stamen.com.s3.amazonaws.com/12_sig_avg_4/{Z}/{X}/{Y}.png');
map = new mm.Map('map', provider)
map.setCenterZoom(new mm.Location(37.804656, -122.263606), 14);
}
</script>
</head>
<body onload="initMap()">
<h1>Modest Maps JS</h1>
<p><a href="javascript:map.zoomIn()">zoom in</a> | <a href="javascript:map.zoomOut()">zoom out</a>
<br><a href="javascript:map.panLeft()">pan left</a> | <a href="javascript:map.panRight()">pan right</a> | <a href="javascript:map.panDown()">pan down</a> | <a href="javascript:map.panUp()">pan up</a></p>
<div id="map">
</div>
</body>
</html>