<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="ja">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<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(){
map = new GMap2(document.getElementById("gmap"));
map.setCenter(new GLatLng(37, 138), 5);
map.addControl(new GLargeMapControl());
}
function disp(url){
var kml = new GGeoXml("http://www.openspc2.org/testgmap/KML/"+url+"?time="+(new Date()).getTime());
map.addOverlay(kml);
}
// --></script>
<title>各県のポリゴン(KML)をマップ上に表示</title>
</head>
<body>
<div id="gmap" style="width:450px;height:480px"></div>
<ol style="position:absolute;top:10px;left:470px;">
<li><a href="javascript:disp('hokkaido.kml')">北海道</li>
<li><a href="javascript:disp('aomori.kml')">青森県</li>
<li><a href="javascript:disp('akita.kml')">秋田県</li>
<li><a href="javascript:disp('iwate.kml')">岩手県</li>
<li><a href="javascript:disp('yamagata.kml')">山形県</li>
<li><a href="javascript:disp('miyagi.kml')">宮城県</li>
<li><a href="javascript:disp('fukushima.kml')">福島県</li>
<li><a href="javascript:disp('niigata.kml')">新潟県</li>
<li><a href="javascript:disp('tochigi.kml')">栃木県</li>
<li><a href="javascript:disp('ibaraki.kml')">茨城県</li>
<li><a href="javascript:disp('gunma.kml')">群馬県</li>
<li><a href="javascript:disp('chiba.kml')">千葉県</li>
<li><a href="javascript:disp('kanagawa.kml')">神奈川県</li>
<li><a href="javascript:disp('tokyo.kml')">東京都</li>
<li><a href="javascript:disp('saitama.kml')">埼玉県</li>
<li><a href="javascript:disp('nagano.kml')">長野県</li>
<li><a href="javascript:disp('shizuoka.kml')">静岡県</li>
<li><a href="javascript:disp('yamanashi.kml')">山梨県</li>
<li><a href="javascript:disp('toyama.kml')">富山県</li>
<li><a href="javascript:disp('gifu.kml')">岐阜県</li>
<li><a href="javascript:disp('ishikawa.kml')">石川県</li>
<li><a href="javascript:disp('fukui.kml')">福井県</li>
<li><a href="javascript:disp('aichi.kml')">愛知県</li>
<li><a href="javascript:disp('mie.kml')">三重県</li>
<li><a href="javascript:disp('shiga.kml')">滋賀県</li>
<li><a href="javascript:disp('kyoto.kml')">京都府</li>
</ol>
<ol style="position:absolute;top:10px;left:580px;" start="27">
<li><a href="javascript:disp('nara.kml')">奈良県</li>
<li><a href="javascript:disp('wakayama.kml')">和歌山県</li>
<li><a href="javascript:disp('osaka.kml')">大阪府</li>
<li><a href="javascript:disp('hyougo.kml')">兵庫県</li>
<li><a href="javascript:disp('tottori.kml')">鳥取県</li>
<li><a href="javascript:disp('okayama.kml')">岡山県</li>
<li><a href="javascript:disp('hiroshima.kml')">広島県</li>
<li><a href="javascript:disp('shimane.kml')">島根県</li>
<li><a href="javascript:disp('yamaguchi.kml')">山口県</li>
<li><a href="javascript:disp('kagawa.kml')">香川県</li>
<li><a href="javascript:disp('tokushima.kml')">徳島県</li>
<li><a href="javascript:disp('kouchi.kml')">高知県</li>
<li><a href="javascript:disp('ehime.kml')">愛媛県</li>
<li><a href="javascript:disp('ooita.kml')">大分県</li>
<li><a href="javascript:disp('miyazaki.kml')">宮崎県</li>
<li><a href="javascript:disp('fukuoka.kml')">福岡県</li>
<li><a href="javascript:disp('saga.kml')">佐賀県</li>
<li><a href="javascript:disp('kagoshima.kml')">鹿児島県</li>
<li><a href="javascript:disp('nagasaki.kml')">長崎県</li>
<li><a href="javascript:disp('kumamoto.kml')">熊本県</li>
<li><a href="javascript:disp('okinawa.kml')">沖縄県</li>
</ol>
</body>
</html>