var currentInfoWindow = null; //最後に開いた情報ウィンドウを記憶 var contentStr = null; var stationList = [ {"latlng":[35.001165100000000, 135.758380399999960], name:"Leaf(リーフ)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"2", icon:"/images/googlemap/close/icon_reflexology_close.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/le-af/", shopName:"Leaf(リーフ)", shopTel:"075-950-2009", reserve:"(予約優先)", time:"12:00~19:30/土日11:00~18:30", closed:"不定休", mapDisable:"0" }, {"latlng":[34.941694515806810, 135.768620788954880], name:"りらくる 伏見桃山店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"2", icon:"/images/googlemap/close/icon_reflexology_close.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/riracle-fushimimomoyama/", shopName:"りらくる 伏見桃山店", shopTel:"050-8887-1074", reserve:"", time:"9:00~24:00(最終受付23:00)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.985810017199790, 135.757752577246040], name:"REFLE(リフレ) ジェイアール京都伊勢丹店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"2", icon:"/images/googlemap/close/icon_reflexology_close.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/refle-kyoto/", shopName:"REFLE(リフレ) ジェイアール京都伊勢丹店", shopTel:"075-344-0418", reserve:"", time:"10:00~20:00", closed:"不定休", mapDisable:"0" }, {"latlng":[35.003267650591800, 135.768448192590300], name:"Queensway(クイーンズウェイ)高島屋京都店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"2", icon:"/images/googlemap/close/shop_s_close.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"ボディケア", url:"/shop/queensway-kyoto-takashimaya/", shopName:"Queensway(クイーンズウェイ)高島屋京都店", shopTel:"075-254-7271", reserve:"", time:"10:00~20:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.970728123519120, 135.677162695071730], name:"りらくる 京都洛西店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"2", icon:"/images/googlemap/close/icon_reflexology_close.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/riraku-kyouto-rakusai/", shopName:"りらくる 京都洛西店", shopTel:"050-8887-1073", reserve:"", time:"8:00~24:00(最終受付23:00)", closed:"年中無休", mapDisable:"0" }, {"latlng":[35.003619600000000, 135.770783300000000], name:"癒庵(いやしあん) 四条大橋本店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"2", icon:"/images/googlemap/close/icon_reflexology_close.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/iyashian-kyoto/", shopName:"癒庵(いやしあん) 四条大橋本店", shopTel:"0120-114-184", reserve:"", time:"11:00~23:00", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.994948300000000, 135.732685500000000], name:"りらくる 京都西大路五条店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"2", icon:"/images/googlemap/close/icon_reflexology_close.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/riracle-nishioji-gojo/", shopName:"りらくる 京都西大路五条店", shopTel:"050-8887-1068", reserve:"", time:"9:00~24:00(最終受付23:00)", closed:"不定休", mapDisable:"0" }, {"latlng":[35.020709500000000, 135.700501700000020], name:"りらくる 京都太秦店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"2", icon:"/images/googlemap/close/icon_reflexology_close.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/riracle-kyotouzumasa/", shopName:"りらくる 京都太秦店", shopTel:"050-8887-1075", reserve:"", time:"9:00~24:00(最終受付23:00)", closed:"不定休", mapDisable:"0" }, {"latlng":[35.017761995586450, 135.742923309192630], name:"りらくる 千本丸太町店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"2", icon:"/images/googlemap/close/icon_reflexology_close.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/riracle-senbonmarutamachi/", shopName:"りらくる 千本丸太町店", shopTel:"050-8887-1070", reserve:"", time:"9:00~24:00(最終受付23:00)", closed:"年中無休", mapDisable:"0" }, {"latlng":[35.016617737590540, 135.742613852726550], 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/riracle-senbonnijyou/", shopName:"りらくる 千本二条店", shopTel:"050-8887-1069", reserve:"", time:"10:00~翌2:30(最終受付翌1:30)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.986789392865056, 135.759433331907640], name:"Natural Garden 京都ポルタ店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"2", icon:"/images/googlemap/close/icon_reflexology_close.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"リフレクソロジー", url:"/shop/natural-garden-porta/", shopName:"Natural Garden 京都ポルタ店", shopTel:"075-353-7758", reserve:"", time:"11:00~20:30", 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; }