Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (23 sloc) 956 Bytes
<!DOCTYPE html>
<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() {
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 style='width:600px;height:600px;' id="map">
</div>
</body>
</html>
Something went wrong with that request. Please try again.