var currentInfoWindow = null; //最後に開いた情報ウィンドウを記憶 var contentStr = null; var stationList = [ {"latlng":[34.751934500000000, 135.535452999999960], name:"ゆーとも小松", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/yutomo-komatu/", shopName:"ゆーとも小松", shopTel:"06-6324-2626", reserve:"", time:"14:00~翌1:00", closed:"1月1日", mapDisable:"0" }, {"latlng":[34.678369554094296, 135.542969152778600], name:"パール温泉", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/paru-yu/", shopName:"パール温泉", shopTel:"06-6981-5921", reserve:"", time:"15:00~24:00", closed:"水曜", mapDisable:"0" }, {"latlng":[35.012020195221360, 135.766344260118900], name:"玉の湯", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/kyoto-tamanoyu/", shopName:"玉の湯", shopTel:"075-231-2985", reserve:"", time:"15:00~24:00", closed:"日曜", mapDisable:"0" }, {"latlng":[34.667437800000000, 135.487628299999980], name:"ヘルシー温泉 桜川店", 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/sakura-onsen/", shopName:"ヘルシー温泉 桜川店", shopTel:"06-6561-9961", reserve:"", time:"6:00~24:00", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.603970564939880, 135.485464306745940], name:"住之江温泉", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/suminoeonsen/", shopName:"住之江温泉", shopTel:"06-6671-8870", reserve:"", time:"14:00~23:30", closed:"月曜", mapDisable:"0" }, {"latlng":[34.663288599999994, 135.529328108598300], name:"東上温泉(とうじょうおんせん)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/toujou-onsen/", shopName:"東上温泉(とうじょうおんせん)", shopTel:"06-6771-6830", reserve:"", time:"14:00~24:00/日8:00~24:00", closed:"金曜", mapDisable:"0" }, {"latlng":[34.670505811895886, 135.505419397553280], name:"あかし湯", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/akashiyu/", shopName:"あかし湯", shopTel:"06-6211-7464", reserve:"", time:"12:00~翌3:30", closed:"日曜", mapDisable:"0" }, {"latlng":[34.650814258932610, 135.523333664418030], name:"よしの湯", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/yoshinoyu/", shopName:"よしの湯", shopTel:"06-6779-2411", reserve:"", time:"14:00~翌1:00", closed:"毎月5日、15日、25日(※日曜日の場合は営業)", mapDisable:"0" }, {"latlng":[34.666668500000000, 135.503526900000000], name:"AMZA(アムザ)", 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/amza/", shopName:"AMZA(アムザ)", shopTel:"06-6633-1000", reserve:"", time:"12:00~翌10:00(祝日の曜日により営業時間が異なります)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.664013300000000, 135.488956000000030], name:"ヘルシー温泉タテバ", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/tateba/", shopName:"ヘルシー温泉タテバ", shopTel:"0120-514-026", reserve:"", time:"14:00~翌5:00", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.618543700000000, 135.490798899999960], name:"湯たんぽ日之出(ひので)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/yutanpo-hinode/", shopName:"湯たんぽ日之出(ひので)", shopTel:"06-6671-7797", reserve:"", time:"14:00~23:30", closed:"第2・3月曜日", mapDisable:"0" }, {"latlng":[35.010230404706680, 135.775337706745860], name:"柳湯(やなぎゆ)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/yanagiyu/", shopName:"柳湯(やなぎゆ)", shopTel:"075-771-8439", reserve:"", time:"16:30~24:00", closed:"月曜、火曜", mapDisable:"0" }, {"latlng":[34.721003500000000, 135.483705300000000], name:"宝湯(たからゆ)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/takarayu-osaka/", shopName:"宝湯(たからゆ)", shopTel:"06-6301-6716", reserve:"", time:"15:00~翌1:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.652655434898740, 135.506822226389320], name:"新世界ラジウム温泉", 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/radium/", shopName:"新世界ラジウム温泉", shopTel:"06-6641-3093", reserve:"", time:"6:00~24:00", closed:"第2・4木曜日、元旦", mapDisable:"0" }, {"latlng":[34.625835840099250, 135.495346952778620], name:"ニュー浴ハウス ウエルネス", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/neuyokuhausu/", shopName:"ニュー浴ハウス ウエルネス", shopTel:"06-6661-1833", reserve:"", time:"14:00~翌1:00/日7:00~翌1:00", closed:"火曜", mapDisable:"0" }, {"latlng":[34.735752400000000, 135.506253300000030], name:"日之出温泉(ひのでおんせん)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/hinode/", shopName:"日之出温泉(ひのでおんせん)", shopTel:"06-6323-4126", reserve:"", time:"15:00~24:00(日曜日のみ7:00~11:30朝風呂有)", closed:"水曜", mapDisable:"0" }, {"latlng":[34.656771018941000, 135.529899706116900], name:"極楽温泉(ごくらくおんせん)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/gokuraku-onsen/", shopName:"極楽温泉(ごくらくおんせん)", shopTel:"06-6731-4713", reserve:"", time:"14:00~翌1:00/日6:00~翌1:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.786885400000000, 135.464172400000050], name:"豊中温泉(とよなかおんせん)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/toyonaka-onsen/", shopName:"豊中温泉(とよなかおんせん)", shopTel:"06-6852-1258", reserve:"", time:"15:00~翌0:30", closed:"木曜", mapDisable:"0" }, {"latlng":[34.636188931389455, 135.511185399999930], name:"白鳥温泉", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/hakucho-onsen/", shopName:"白鳥温泉", shopTel:"06-6621-7743", reserve:"", time:"15:00~24:00", closed:"月曜", mapDisable:"0" }, {"latlng":[34.850254268962850, 135.617177353373000], name:"錦温泉(にしきおんせん)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/nishiki-takatuki/", shopName:"錦温泉(にしきおんせん)", shopTel:"072-682-2026", reserve:"", time:"15:30~23:30", closed:"第1・3水曜日", mapDisable:"0" }, {"latlng":[34.656199900000000, 135.493635300000050], name:"だいこく温泉", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/daikokuonsen/", shopName:"だいこく温泉", shopTel:"06-6636-3600", reserve:"", time:"10:00~翌2:00", closed:"年末年始・お盆", mapDisable:"0" }, {"latlng":[34.648753291166210, 135.502264557077780], name:"入船温泉(いりふねおんせん)", 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/irihune/", shopName:"入船温泉(いりふねおんせん)", shopTel:"06-6641-2681", reserve:"", time:"6:00~24:00(最終受付23:30)", closed:"月曜", mapDisable:"0" }, {"latlng":[34.636325583140100, 135.498618006134170], name:"天水湯(てんすいゆ)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/tensuiyu/", shopName:"天水湯(てんすいゆ)", shopTel:"06-6651-1646", reserve:"", time:"12:00~24:00", closed:"水曜", mapDisable:"0" }, {"latlng":[34.645037800000000, 135.510518600000070], name:"湯処 あべの橋", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/abenobashi/", shopName:"湯処 あべの橋", shopTel:"06-7890-1126", reserve:"", time:"12:00~24:00(最終受付23:30)", closed:"木曜", mapDisable:"0" }, {"latlng":[34.706658800000000, 135.510250199999970], name:"クラブ温泉", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/kurabu/", shopName:"クラブ温泉", shopTel:"06-6371-7277", reserve:"", time:"15:00~翌1:30", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.740571600000000, 135.516457800000000], name:"昭和湯", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/showayu/", shopName:"昭和湯", shopTel:"06-6322-2645", reserve:"", time:"14:45~翌0:30(毎週土曜日:朝風呂7:00~9:30)", closed:"水曜", mapDisable:"0" }, {"latlng":[34.696237768426580, 135.486376639881200], name:"延命湯", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/enmeiyu/", shopName:"延命湯", shopTel:"06-6451-3744", reserve:"", time:"15:00~24:00", closed:"火曜", mapDisable:"0" }, {"latlng":[34.809198300000000, 135.444542800000020], name:"平和温泉", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/heiwaonsen/", shopName:"平和温泉", shopTel:"0727-61-8196", reserve:"", time:"14:15~翌1:00", closed:"月曜", mapDisable:"0" }, {"latlng":[34.648175784295894, 135.527087749073760], name:"天竜湯", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/tenryuyu/", shopName:"天竜湯", shopTel:"06-6731-8948", reserve:"", time:"14:00~翌0:30/日9:00~翌0:30(最終受付24:00)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.696892300000000, 135.477783800000000], name:"日之出温泉", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/hinode-hukusima/", shopName:"日之出温泉", shopTel:"06-6458-1487", reserve:"", time:"16:00~23:00", closed:"月曜", mapDisable:"0" }, {"latlng":[34.724668600000000, 135.546963799999960], name:"神徳温泉(しんとくおんせん)", 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/shintoku-onsen/", shopName:"神徳温泉(しんとくおんせん)", shopTel:"06-6951-2463", reserve:"", time:"6:30~翌2:00", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.751608693355806, 135.533416786473480], name:"天然温泉 満月", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/mangetsu-kamishinjo/", shopName:"天然温泉 満月", shopTel:"06-6329-4126", reserve:"", time:"10:00~翌2:00(最終受付翌1:30)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.685981133215236, 135.454881813491850], name:"四貫島温泉(しかんじまおんせん)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/shikanzima-onsen/", shopName:"四貫島温泉(しかんじまおんせん)", shopTel:"06-6461-8178", reserve:"", time:"14:30~翌1:00", closed:"第2・4月曜日", mapDisable:"0" }, {"latlng":[34.657322600000000, 135.527911099999980], name:"桃谷温泉", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/momodani-onsen/", shopName:"桃谷温泉", shopTel:"06-6718-1788", reserve:"", time:"15:00~24:00", closed:"月曜", mapDisable:"0" }, {"latlng":[34.660257327994046, 135.507171462565570], name:"日本橋湯", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/nihonbashiyu/", shopName:"日本橋湯", shopTel:"06-6641-7025", reserve:"", time:"14:30~24:00", closed:"第1・3月曜日", mapDisable:"0" }, {"latlng":[35.010107100000000, 135.773860300000020], name:"孫橋湯(まごはしゆ)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/magohashi-yu/", shopName:"孫橋湯(まごはしゆ)", shopTel:"075-771-2108", reserve:"", time:"15:00~24:00", closed:"水曜", mapDisable:"0" }, {"latlng":[34.628412000000000, 135.491181900000020], name:"ゆあそび広場 出世湯", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/yuasobihiroba-syusseyu/", shopName:"ゆあそび広場 出世湯", shopTel:"06-6657-0070", reserve:"", time:"14:00~24:00", closed:"火曜", mapDisable:"0" }, {"latlng":[34.706836900000000, 135.538511999999970], name:"KotobukiOnsen(コトブキオンセン)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/kotobuki-zyoutou/", shopName:"KotobukiOnsen(コトブキオンセン)", shopTel:"06-6931-9190", reserve:"", time:"14:00~24:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.707880700000000, 135.504064600000000], name:"葉村温泉(はむらおんせん)", 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/hamura/", shopName:"葉村温泉(はむらおんせん)", shopTel:"06-6371-5744", reserve:"", time:"14:30~翌1:00", closed:"土曜", mapDisable:"0" }, {"latlng":[34.685133355535655, 135.828459673016370], name:"大西湯", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/shop_s_open.png", scaledSize : new google.maps.Size(10, 10), manage:"5", genreName:"銭湯(公衆浴場)", url:"/shop/onishi-yu/", shopName:"大西湯", shopTel:"0742-22-4875", reserve:"", time:"15:00~23:00", closed:"第2・4月曜日", 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; }