function viewMap() { if (GBrowserIsCompatible()) { //マップエリアの取得 var map = new GMap2(document.getElementById("map")); //マップのセンター合わせ map.setCenter(new GLatLng(34.43409789359469, 133.06640625), 7); //コントロール類の表示 map.addControl(new GMapTypeControl()); //ドラッグを禁止する map.disableDragging(); //都道府県ラベルの表示 var lbl_kyoto = new TLabel(); lbl_kyoto.id = "kyoto"; lbl_kyoto.anchorPoint = "topCenter"; lbl_kyoto.anchorLatLng = new GLatLng(35.16931803601131,135.538330078125); lbl_kyoto.percentOpacity = 100; lbl_kyoto.content = "京都府"; map.addTLabel(lbl_kyoto); var lbl_osaka = new TLabel(); lbl_osaka.id = "osaka"; lbl_osaka.anchorPoint = "topCenter"; lbl_osaka.anchorLatLng = new GLatLng(34.655803905058974,135.50949096679688); lbl_osaka.percentOpacity = 100; lbl_osaka.content = "大阪府"; map.addTLabel(lbl_osaka); var lbl_hyogo = new TLabel(); lbl_hyogo.id = "hyogo"; lbl_hyogo.anchorPoint = "topCenter"; lbl_hyogo.anchorLatLng = new GLatLng(34.94899072578227,134.9285888671875); lbl_hyogo.percentOpacity = 100; lbl_hyogo.content = "兵庫県"; map.addTLabel(lbl_hyogo); var lbl_tottori = new TLabel(); lbl_tottori.id = "tottori"; lbl_tottori.anchorPoint = "topCenter"; lbl_tottori.anchorLatLng = new GLatLng(35.420391545750746,133.890380859375); lbl_tottori.percentOpacity = 100; lbl_tottori.content = "鳥取県"; map.addTLabel(lbl_tottori); var lbl_shimane = new TLabel(); lbl_shimane.id = "shimane"; lbl_shimane.anchorPoint = "topCenter"; lbl_shimane.anchorLatLng = new GLatLng(35.15135442846945,132.659912109375); lbl_shimane.percentOpacity = 100; lbl_shimane.content = "島根県"; map.addTLabel(lbl_shimane); var lbl_okayama = new TLabel(); lbl_okayama.id = "okayama"; lbl_okayama.anchorPoint = "topCenter"; lbl_okayama.anchorLatLng = new GLatLng(34.86114420171435,133.85467529296875); lbl_okayama.percentOpacity = 100; lbl_okayama.content = "岡山県"; map.addTLabel(lbl_okayama); var lbl_hiroshima = new TLabel(); lbl_hiroshima.id = "hiroshima"; lbl_hiroshima.anchorPoint = "topCenter"; lbl_hiroshima.anchorLatLng = new GLatLng(34.57895241036948,132.802734375); lbl_hiroshima.percentOpacity = 100; lbl_hiroshima.content = "広島県"; map.addTLabel(lbl_hiroshima); var lbl_tokushima = new TLabel(); lbl_tokushima.id = "tokushima"; lbl_tokushima.anchorPoint = "topCenter"; lbl_tokushima.anchorLatLng = new GLatLng(33.93880275084578,134.23370361328125); lbl_tokushima.percentOpacity = 100; lbl_tokushima.content = "徳島県"; map.addTLabel(lbl_tokushima); var lbl_kagawa = new TLabel(); lbl_kagawa.id = "kagawa"; lbl_kagawa.anchorPoint = "topCenter"; lbl_kagawa.anchorLatLng = new GLatLng(34.261756524459805,134.00848388671875); lbl_kagawa.percentOpacity = 100; lbl_kagawa.content = "香川県"; map.addTLabel(lbl_kagawa); var lbl_ehime = new TLabel(); lbl_ehime.id = "ehime"; lbl_ehime.anchorPoint = "topCenter"; lbl_ehime.anchorLatLng = new GLatLng(33.669496972795535,132.9345703125); lbl_ehime.percentOpacity = 100; lbl_ehime.content = "愛媛県"; map.addTLabel(lbl_ehime); var lbl_fukuoka = new TLabel(); lbl_fukuoka.id = "fukuoka"; lbl_fukuoka.anchorPoint = "topCenter"; lbl_fukuoka.anchorLatLng = new GLatLng(33.60666698891187,130.41826128959656); lbl_fukuoka.percentOpacity = 100; lbl_fukuoka.content = "福岡県"; map.addTLabel(lbl_fukuoka); } }