説明
		
			
			
		
カスタムマーカーを追加するにはGIcon()でカスタムアイコンを作成します。作成したオブジェクトの各種プロパティに必要な値を設定します。次にGMarker()でマーカーオブジェクトを作成し二番目のパラメータにGIcon()で作成したオブジェクトを指定します。GMarker()で作成されたオブジェクトをaddOverlay()のパラメータに指定します。
				 
			
				
				
		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
		<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
		<title>Sample</title>
		<script src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAAasAJryKxWJnBFVJa487d9hTHGAxTVT7IRADYa-JdYz7xQ8IQZBSthgDZdggYpQHsmm6WYtHstQFfLA" type="text/javascript"></script>
		</head>
		<body>
		<div id="gmap" style="width: 500px; height: 400px"></div>
		<script type="text/javascript">
		//<![CDATA[
		 map = new GMap(document.getElementById("gmap"));
		 gpObj = new GPoint(138, 36);
		 map.centerAndZoom(gpObj, 11);
		 customMarkerObj = new GIcon();
		 customMarkerObj.image = "arrow.png";
		 customMarkerObj.iconSize = new GSize(39, 59);
		 customMarkerObj.iconAnchor = new GPoint(20, 59);
		 marker = new GMarker(gpObj, customMarkerObj);
		 map.addOverlay(marker);
		//]]>
		</script>
		</body>
		</html>