書式
height
説明
GSizeオブジェクトの縦幅の値を示すプロパティです。
<!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>
<script src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAAasAJryKxWJnBFVJa487d9hTHGAxTVT7IRADYa-JdYz7xQ8IQZBSthgDZdggYpQHsmm6WYtHstQFfLA" type="text/javascript"></script>
</head>
<body>
<div id="map" style="width: 500px; height: 400px"></div>
<script type="text/javascript">
//<![CDATA[
var map = new GMap(document.getElementById("map"));
gpObj = new GPoint(138,36.5);
map.centerAndZoom(gpObj, 10);
iconObj = new GIcon();
iconObj.image = "hand.png";
iconObj.iconSize = new GSize(21,32);
iconObj.iconAnchor = new GPoint(0,0);
marker = new GMarker(gpObj, iconObj);
map.addOverlay(marker);
alert(iconObj.iconSize.height);
//]]>
</script>
</body>
</html>