//神奈川県横浜市鶴見区市場富士見町9-6
TEL:045-503-2149'; var point = new google.maps.LatLng(35.517655, 139.689136); marker[0] = new google.maps.Marker({position: point, title:"ニューヨーク"}); marker[0].setMap(map); google.maps.event.addListener(marker[0], "click", function() { clickMarker(35.517655, 139.689136, 0); }); html[1] = 'シャンベリー
神奈川県横浜市鶴見区小野町37-6
TEL:045-506-6311'; var point = new google.maps.LatLng(35.497094, 139.685062); marker[1] = new google.maps.Marker({position: point, title:"シャンベリー"}); marker[1].setMap(map); google.maps.event.addListener(marker[1], "click", function() { clickMarker(35.497094, 139.685062, 1); }); html[2] = 'ヘブン
神奈川県横浜市鶴見区佃野町9-22
TEL:045-584-0222'; var point = new google.maps.LatLng(35.513264, 139.676096); marker[2] = new google.maps.Marker({position: point, title:"ヘブン"}); marker[2].setMap(map); google.maps.event.addListener(marker[2], "click", function() { clickMarker(35.513264, 139.676096, 2); }); } function loadScript() { var script = document.createElement("script"); script.type = "text/javascript"; script.src = "https://maps.googleapis.com/maps/api/js?key=AIzaSyCGKAMasglpMH1NazjBj7x854RsJvV8k5M&sensor=false&callback=initialize"; document.body.appendChild(script); } function clickMarker(lat, lang, index){ if(infowindow) infowindow.close(); map.panTo(new google.maps.LatLng(lat, lang)); infowindow = new google.maps.InfoWindow({content: html[index]}); //吹き出しを表示する infowindow.open(map, marker[index]); } window.onload = loadScript; //]]>