//神奈川県川崎市中原区新丸子東2-897
TEL:044-433-2321';
var point = new google.maps.LatLng(35.57851, 139.662869);
marker[0] = new google.maps.Marker({position: point, title:"マキシム"});
marker[0].setMap(map);
google.maps.event.addListener(marker[0], "click", function() {
clickMarker(35.57851, 139.662869, 0);
});
html[1] = 'ラヴィII
神奈川県川崎市中原区新丸子東2-896
TEL:044-422-0213';
var point = new google.maps.LatLng(35.577915, 139.662942);
marker[1] = new google.maps.Marker({position: point, title:"ラヴィII"});
marker[1].setMap(map);
google.maps.event.addListener(marker[1], "click", function() {
clickMarker(35.577915, 139.662942, 1);
});
html[2] = 'ラヴィ
神奈川県川崎市中原区新丸子東2-896
TEL:044-433-8206';
var point = new google.maps.LatLng(35.577915, 139.662942);
marker[2] = new google.maps.Marker({position: point, title:"ラヴィ"});
marker[2].setMap(map);
google.maps.event.addListener(marker[2], "click", function() {
clickMarker(35.577915, 139.662942, 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;
//]]>