//東京都豊島区西池袋1-10-4
TEL:03-5960-0081';
var point = new google.maps.LatLng(35.729295, 139.708533);
marker[0] = new google.maps.Marker({position: point, title:"ドマーニ"});
marker[0].setMap(map);
google.maps.event.addListener(marker[0], "click", function() {
clickMarker(35.729295, 139.708533, 0);
});
html[1] = 'アイル
東京都豊島区西池袋1-10-6
TEL:03-3971-7491';
var point = new google.maps.LatLng(35.729448, 139.708614);
marker[1] = new google.maps.Marker({position: point, title:"アイル"});
marker[1].setMap(map);
google.maps.event.addListener(marker[1], "click", function() {
clickMarker(35.729448, 139.708614, 1);
});
html[2] = 'マリオン
東京都豊島区西池袋1-2-2
TEL:03-3983-9455';
var point = new google.maps.LatLng(35.72762, 139.709144);
marker[2] = new google.maps.Marker({position: point, title:"マリオン"});
marker[2].setMap(map);
google.maps.event.addListener(marker[2], "click", function() {
clickMarker(35.72762, 139.709144, 2);
});
html[3] = 'リンデン
東京都豊島区西池袋2-38-8
TEL:03-3984-0511';
var point = new google.maps.LatLng(35.727912, 139.707292);
marker[3] = new google.maps.Marker({position: point, title:"リンデン"});
marker[3].setMap(map);
google.maps.event.addListener(marker[3], "click", function() {
clickMarker(35.727912, 139.707292, 3);
});
html[4] = 'ホテル タイムズ
東京都豊島区西池袋1-2-10
TEL:03-6907-3605';
var point = new google.maps.LatLng(35.727701, 139.709497);
marker[4] = new google.maps.Marker({position: point, title:"ホテル タイムズ"});
marker[4].setMap(map);
google.maps.event.addListener(marker[4], "click", function() {
clickMarker(35.727701, 139.709497, 4);
});
}
function loadScript() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://maps.googleapis.com/maps/api/js?key=AIzaSyC6FmroPbUeWeiI0WVDFO9mpc9RZl2Ix1Y&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;
//]]>