Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (25 sloc) 677 Bytes
<!DOCTYPE html>
<html>
<head>
<title>Modest Maps JS</title>
<script type="text/javascript" src="../../modestmaps.min.js"></script>
<script type="text/javascript">
var map;
function initMap() {
var MM = com.modestmaps;
var template = 'http://{S}tile.openstreetmap.org/{Z}/{X}/{Y}.png';
var subdomains = [ '', 'a.', 'b.', 'c.' ];
var provider = new MM.TemplatedLayer(template, subdomains);
map = new MM.Map(document.body, provider)
map.setCenterZoom(new MM.Location(0, 0), 2);
}
</script>
<style>
html, body {
width: 100%; height: 100%;
}
</style>
</head>
<body onload="initMap()">
</body>
</html>