<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Google Maps Sample (グーグルマップサンプル)</title>
<link rel="stylesheet" href="css/main.css" type="text/css" media="all">
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAasAJryKxWJnBFVJa487d9hTHGAxTVT7IRADYa-JdYz7xQ8IQZBSthgDZdggYpQHsmm6WYtHstQFfLA" type="text/javascript"></script>
<script type="text/javascript"><!--
window.onload = function() {
var colorName = ["black.png","blue.png","red.png","magenta.png",
"green.png","cyan.png","yellow.png","white.png"];
var map = new GMap2(document.getElementById("gmap"));
var gpObj = [[37,138],[37.5,138],[38,138],[38.5,138],
[37,138.5],[37.5,138.5],[38,138.5],[38.5,138.5]];
map.setCenter(new GLatLng(38,138), 7);
for(var i=0; i<gpObj.length; i++){
var marker = new GMarker(new GLatLng(gpObj[i][0], gpObj[i][1]));
G_DEFAULT_ICON.image = "images/"+colorName[i];
map.addOverlay(marker);
}
}
// --></script>
</head>
<body>
<h1>カラーマーカーサンプル</h1>
<div id="gmap" style="width: 500px; height: 400px"></div>
</body>
</html>