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 31 32 33
|
<!DOCTYPE html>
<html>
<head>
<title>Modest Maps JS</title>
<script type="text/javascript" src="../../modestmaps.js"></script>
<script type="text/javascript" src="cloudmade.js"></script>
<script type="text/javascript">
var map;
function initMap() {
// "import" the namespace
var MM = com.modestmaps;
// please use your own API key, see http://developers.cloudmade.com/ for more details
var provider = new MM.CloudMadeProvider('1a914755a77758e49e19a26e799268b7','998');
map = new MM.Map(document.body, provider)
map.setCenterZoom(new MM.Location(37.804656, -122.263606), 14);
}
</script>
<style type="text/css">
html, body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
border: 0;
}
</style>
</head>
<body onload="initMap()">
</body>
</html>
|