function viewMap() { if (GBrowserIsCompatible()) { //マップエリアの取得 var map = new GMap2(document.getElementById("map")); //マップのセンター合わせ map.setCenter(new GLatLng(34.43409789359469, 133.06640625), 7); //map.setCenter(new GLatLng(35.101934,135.812988), 6); //コントロール類の表示 map.addControl(new GMapTypeControl()); //ドラッグを禁止する map.disableDragging(); //会場ラベルの表示 var lbl_okayama2 = new TLabel(); lbl_okayama2.id = "okayama2"; lbl_okayama2.anchorPoint = "topCenter"; lbl_okayama2.anchorLatLng = new GLatLng(34.70549341022544,133.912353515625); lbl_okayama2.percentOpacity = 100; lbl_okayama2.content = "岡山"; map.addTLabel(lbl_okayama2); var lbl_hiroshima = new TLabel(); lbl_hiroshima.id = "hiroshima"; lbl_hiroshima.anchorPoint = "topCenter"; lbl_hiroshima.anchorLatLng = new GLatLng(34.394994317090564,132.4693787097931); lbl_hiroshima.percentOpacity = 100; lbl_hiroshima.content = "広島"; map.addTLabel(lbl_hiroshima); var lbl_kobe = new TLabel(); lbl_kobe.id = "kobe"; lbl_kobe.anchorPoint = "topCenter"; lbl_kobe.anchorLatLng = new GLatLng(34.705493,134.967041); lbl_kobe.percentOpacity = 100; lbl_kobe.content = "神戸"; map.addTLabel(lbl_kobe); var lbl_osaka = new TLabel(); lbl_osaka.id = "osaka"; lbl_osaka.anchorPoint = "topCenter"; lbl_osaka.anchorLatLng = new GLatLng(34.633208,135.648193); lbl_osaka.percentOpacity = 100; lbl_osaka.content = "大阪"; map.addTLabel(lbl_osaka); var lbl_fukuoka = new TLabel(); lbl_fukuoka.id = "fukuoka"; lbl_fukuoka.anchorPoint = "topCenter"; lbl_fukuoka.anchorLatLng = new GLatLng(33.59152431146372,130.4197633266449); lbl_fukuoka.percentOpacity = 100; lbl_fukuoka.content = "福岡"; map.addTLabel(lbl_fukuoka); } }