var currentInfoWindow = null; //最後に開いた情報ウィンドウを記憶 var contentStr = null; var stationList = [ {"latlng":[35.697485500000000, 139.411951600000070], name:"Goo-it!(グイット)立川南口店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-tachikawa/", shopName:"Goo-it!(グイット)立川南口店", shopTel:"042-512-5404", reserve:"", time:"10:00~23:00", closed:"追加→ 年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.727734100000000, 139.713682899999980], name:"癒し空間 池袋店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/san-setsu-ikebukuro/", shopName:"癒し空間 池袋店", shopTel:"0120-184-884", reserve:"(予約優先)", time:"11:00~21:00", closed:"不定休", mapDisable:"0" }, {"latlng":[35.708340600000000, 139.774007300000000], name:"Goo-it!(グイット)上野御徒町店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-uenookachimachi/", shopName:"Goo-it!(グイット)上野御徒町店", shopTel:"03-5826-8635", reserve:"", time:"10:00~23:00", closed:"年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.656858500000000, 139.704495200000000], name:"明治通り あしカラダ", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/asikarada/", shopName:"明治通り あしカラダ", shopTel:"03-6427-4193", reserve:"", time:"10:00~翌5:00", closed:"年中無休", mapDisable:"0" }, {"latlng":[35.695683100000000, 139.755714400000000], name:"Goo-it!(グイット)神保町店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-jinbocho/", shopName:"Goo-it!(グイット)神保町店", shopTel:"03-6272-9707", reserve:"", time:"11:00~22:30/土日祝11:00~22:00", closed:"年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.645579100000000, 139.697182300000000], name:"整体サロン杏樹", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/ange-salon/", shopName:"整体サロン杏樹", shopTel:"03-6452-2059", reserve:"(完全予約制)", time:"12:00~21:00/祝10:00~19:00", closed:"不定休", mapDisable:"0" }, {"latlng":[35.701480200000000, 139.772079900000000], name:"Goo-it!(グイット)秋葉原店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-akihabara/", shopName:"Goo-it!(グイット)秋葉原店", shopTel:"03-6206-9809", reserve:"", time:"10:00~23:00", closed:"年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.770017800000000, 139.869094600000000], name:"Goo-it!(グイット)金町北口店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-kanamachi-kitaguchi-ekimae/", shopName:"Goo-it!(グイット)金町北口店", shopTel:"03-3600-3330", reserve:"", time:"10:00~23:00(年中無休(年末年始の一部を除く))", closed:"不定休", mapDisable:"0" }, {"latlng":[35.672885300000000, 139.737855500000020], name:"Goo-it!(グイット)赤坂店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-akasaka/", shopName:"Goo-it!(グイット)赤坂店", shopTel:"03-6435-5212", reserve:"", time:"10:00~22:00", closed:"年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.445488100000000, 139.635924200000000], name:"Goo-it!(グイット)関内北口店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-kannai-kitaguchi/", shopName:"Goo-it!(グイット)関内北口店", shopTel:"045-264-7911", reserve:"", time:"10:00~21:00", closed:"定休日 年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.623605600000000, 139.426347800000000], name:"Goo-it!(グイット)多摩センター南口店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-tamacenter-minamiguchi/", shopName:"Goo-it!(グイット)多摩センター南口店", shopTel:"042-400-1381", reserve:"", time:"10:00~23:00", closed:"年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.660927400000000, 139.702031400000000], name:"Goo-it!(グイット)渋谷宮益坂店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-miyamasuzaka/", shopName:"Goo-it!(グイット)渋谷宮益坂店", shopTel:"03-6419-7030", reserve:"", time:"11:00~23:00", closed:"不定休", mapDisable:"0" }, {"latlng":[35.562903800000000, 139.713743000000020], name:"Goo-it!(グイット)蒲田西口店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-kamata/", shopName:"Goo-it!(グイット)蒲田西口店", shopTel:"03-6424-5531", reserve:"", time:"10:00~23:00", closed:"年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.689237700000000, 139.696653100000050], name:"Goo-it!(グイット)新宿西口店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-shinjuku-west/", shopName:"Goo-it!(グイット)新宿西口店", shopTel:"03-3342-5550", reserve:"", time:"11:00~23:00/土日10:00~23:00", closed:"年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.619691700000000, 139.703748100000000], name:"Goo-it!(グイット)武蔵小山駅前店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-musashi-koyama-ekimae/", shopName:"Goo-it!(グイット)武蔵小山駅前店", shopTel:"03-6426-9410", reserve:"", time:"10:00~22:00(年中無休(年末年始の一部を除く))", closed:"不定休", mapDisable:"0" }, {"latlng":[35.660962500000000, 139.698660900000000], name:"Goo-it!(グイット)渋谷宇田川町店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-dougenzaka/", shopName:"Goo-it!(グイット)渋谷宇田川町店", shopTel:"03-6416-1778", reserve:"", time:"10:00~23:00", closed:"不定休", mapDisable:"0" }, {"latlng":[35.712027200000000, 139.797536100000000], name:"Goo-it!(グイット)浅草駅前店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-asakusa/", shopName:"Goo-it!(グイット)浅草駅前店", shopTel:"03-6773-7553", reserve:"", time:"11:00~23:00", closed:"年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.647193100000000, 139.707348000000020], name:"癒し処元気", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/i-genki/", shopName:"癒し処元気", shopTel:"03-6277-1700", reserve:"", time:"12:00~23:00/日12:00~20:00", closed:"年末年始休み", mapDisable:"0" }, {"latlng":[35.704111200000000, 139.580937200000000], name:"吉祥寺大通り あしカラダ", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/asikarada-k/", shopName:"吉祥寺大通り あしカラダ", shopTel:"0422-22-0213", reserve:"", time:"10:00~翌5:00", closed:"年中無休", mapDisable:"0" }, {"latlng":[35.657366499999990, 139.696437500000000], name:"マッサージルームYUAN", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/yuan/", shopName:"マッサージルームYUAN", shopTel:"03-3464-6428", reserve:"", time:"12:00~22:00(最終受付)", closed:"不定休", mapDisable:"0" }, {"latlng":[35.691459100000000, 139.769374800000040], name:"Goo-it!(グイット)神田店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-kanda/", shopName:"Goo-it!(グイット)神田店", shopTel:"03-6206-8860", reserve:"", time:"11:00~22:00", closed:"年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.691747000000000, 139.739004600000040], name:"Goo-it!(グイット)市ヶ谷店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-ichigaya/", shopName:"Goo-it!(グイット)市ヶ谷店", shopTel:"03-6268-9920", reserve:"", time:"11:00~21:00/土日10:00~20:00", closed:"年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.685593600000000, 139.798842500000000], name:"Goo-it!(グイット)森下店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-morishita/", shopName:"Goo-it!(グイット)森下店", shopTel:"03-6659-4348", reserve:"", time:"10:00~22:00", closed:"年中無休(年末年始の一部を除く)", mapDisable:"0" }, {"latlng":[35.698031400000000, 139.786366600000000], name:"Goo-it!(グイット)浅草橋東口店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_reflexology.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/gooit-asakusabashi-higashiguchi/", shopName:"Goo-it!(グイット)浅草橋東口店", shopTel:"03-3865-3739", reserve:"", time:"11:00~23:00", closed:"定休日 年中無休(年末年始の一部を除く)", mapDisable:"0" }]; function createMarker(map, i) { //マーカーを作成 station = stationList[i]; latlng = new google.maps.LatLng(station.latlng[0], station.latlng[1]); title = station.name; genreName = station.genreName; manage = station.manage; if(station.url){ imgurl = ''+station.shopName+''; url = ''+station.shopName+''; }else{ imgurl = station.shopName; url = station.shopName; } if(manage <= 5){ contentStr = '
'; contentStr += '

'+url+'

'; contentStr += '

'+genreName+'

'; contentStr += '
'; }else if(manage <= '10'){ contentStr = '
'; contentStr += '

'+url+'

'; contentStr += '
'+imgurl+'
'; contentStr += '
'; contentStr += '

'+genreName+'

'; contentStr += '

'+station.time+'

'; contentStr += '

'+station.closed+'

'; contentStr += '
'; contentStr += '
'; }else{ contentStr = '
'; contentStr += '

'+url+'

'; contentStr += '
'+imgurl+'
'; contentStr += '
'; contentStr += '

'+genreName+'

'; contentStr += '

'+station.time+'

'; contentStr += '

'+station.closed+'

'; contentStr += '
'; contentStr += '
'; } image = "image"+i; var image = { url: station.icon, scaledSize : station.scaledSize } var marker = new google.maps.Marker({ position : latlng, icon : image, map : map, title : title }); var infoWnd = new google.maps.InfoWindow({ content : contentStr }); //マーカーがクリックされたら、情報ウィンドウを表示 google.maps.event.addListener(marker, "click", function(){ if (currentInfoWindow) { currentInfoWindow.close(); } infoWnd.open(map, marker); currentInfoWindow = infoWnd; }); return marker; }