geohex v3のテスト2

  • タグ:
  • タグはありません
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="hex_v3_core.js" type="text/javascript" content="text/html; charset=utf-8"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var zone = GeoHex.getZoneByCode("XM6");
var zone2 = GeoHex.getZoneByLocation(zone.lat,zone.lon,zone.getLevel()-1);
var result = zone2.code;
alert(result);
</script>
</head>
<body>
</body>
</html>