var currentInfoWindow = null; //最後に開いた情報ウィンドウを記憶 var contentStr = null; var stationList = [ {"latlng":[34.672394437278040, 135.497751379150540], name:"Royal Sweet(ロイヤルスイート)", shopImg:"https://www.refle.info/salonImg/Njk2N0AxMEA2MGI0M2MxYzMwYTcyQDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/royal-sweet/", shopName:"Royal Sweet(ロイヤルスイート)", shopTel:"080-9299-4519", reserve:"", time:"12:00~翌2:00(受付時間10:30~24:30)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.675784451186615, 135.507332816108710], name:"Royal Sweet(ロイヤルスイート)", shopImg:"https://www.refle.info/salonImg/Njk2N0AxMEA2MGI0M2MxYzMwYTcyQDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/royal-sweet/", shopName:"Royal Sweet(ロイヤルスイート)", shopTel:"080-9299-4519", reserve:"", time:"12:00~翌2:00(受付時間10:30~24:30)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.675793041037080, 135.507319183978920], name:"ミセスの子守唄", shopImg:"https://www.refle.info/salonImg/NzM3MkA1QDYyM2Q0YTE4NjE5NTZAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/misesunokomoriuta/", shopName:"ミセスの子守唄", shopTel:"090-4292-4129", reserve:"(完全予約制)", time:"9:00~翌3:00", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.676747883527980, 135.503820423313530], name:"LOVE+(ラブプラス)", shopImg:"https://www.refle.info/salonImg/NzM5NEAxMEA2MjU5YTQ3ODcwY2E4QDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/love-plus/", shopName:"LOVE+(ラブプラス)", shopTel:"080-9752-3223", reserve:"(完全予約制)", time:"10:00~23:00(最終受付)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.676788938167654, 135.503795511045040], name:"VISCONTI(ヴィスコンティ)", shopImg:"https://www.refle.info/salonImg/NTA4MkAxMEA1ZWUwMjIwNWVhZjQ5QDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/visconti/", shopName:"VISCONTI(ヴィスコンティ)", shopTel:"080-9601-0184", reserve:"(完全予約制)", time:"10:00~翌3:00(最終受付)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.676755973469260, 135.506926130059440], name:"Tie(ティエ)", shopImg:"https://www.refle.info/salonImg/NzcwMkAxMEA2NDI1NWEzNzJjMDFjQDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/tie-osaka/", shopName:"Tie(ティエ)", shopTel:"080-6993-1404", reserve:"(完全予約制)", time:"12:00~翌3:00(受付時間11:00~翌3:00)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.676786279432150, 135.506888980339450], name:"XILLIA(エクシリア)", shopImg:"https://www.refle.info/salonImg/NDYxMEAxMEA2MjI1NTA3MDU3ZmVkQDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/xillia777/", shopName:"XILLIA(エクシリア)", shopTel:"080-4493-7672", reserve:"(予約優先)", time:"10:00~翌5:00(最終受付翌4:00)", closed:"年末年始", mapDisable:"0" }, {"latlng":[34.674965890170434, 135.507407217768400], name:"VIO:V(ヴィオーヴ)", shopImg:"https://www.refle.info/salonImg/NzI0MUAxMEA2MWE4MTk4ZGQwNWU2QDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/viov/", shopName:"VIO:V(ヴィオーヴ)", shopTel:"070-1814-0342", reserve:"(完全予約制)", time:"10:00~22:00(受付時間9:00~21:00)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.676300623174690, 135.508283350331880], name:"Mrs.la nature(ミセス・ラ・ナチュール)", shopImg:"https://www.refle.info/salonImg/Nzc1MkAxMEA2NDYxZjdmMDA0ZGVmQDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/mrs-la-nature/", shopName:"Mrs.la nature(ミセス・ラ・ナチュール)", shopTel:"06-6796-7121", reserve:"(完全予約制)", time:"10:00~23:00(受付時間9:30~22:00)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.675938225071750, 135.507560569940550], name:"High Room(ハイルーム)ミナミ", shopImg:"https://www.refle.info/salonImg/Mjk2NUAwQDZkY2U2ZjE2MjZjODM4NzkyYmUwZTNlNGVmMzk0MmZjQDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/high-room/", shopName:"High Room(ハイルーム)ミナミ", shopTel:"06-6484-7295", reserve:"(完全予約制)", time:"10:00~24:00(受付時間9:30~23:00)", closed:"年末年始", mapDisable:"0" }, {"latlng":[34.675776675748760, 135.507319024981830], name:"FROG SPA(フロッグスパ)", shopImg:"https://www.refle.info/salonImg/NjM1NUAxMEA2NTI0ZjIwYWUzNWFmQDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/frog-spa/", shopName:"FROG SPA(フロッグスパ)", shopTel:"080-3832-1844", reserve:"(完全予約制)", time:"12:00~翌3:00(受付時間10:00~翌1:30)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.674079276349800, 135.497950770424750], name:"SARISARI(サリサリ)", shopImg:"https://www.refle.info/salonImg/MTY5MEAxMEA2MDM1YTUzODYxZDQ0QDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"店舗マッサージ", url:"/shop/sarisari-shinsaibashi/", shopName:"SARISARI(サリサリ)", shopTel:"090-6557-1888", reserve:"(完全予約制)", time:"10:00~24:00(最終受付翌24:00)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.676774943955350, 135.505169715356740], name:"なにわ女子", shopImg:"https://www.refle.info/salonImg/Nzg5NEA1QDY1Njk2ZGUxMTMxYTdAOTBANDIw.jpeg", open:"2", icon:"/images/googlemap/close/icon_massage_close.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/naniwajoshi/", shopName:"なにわ女子", shopTel:"080-7385-5289", reserve:"(完全予約制)", time:"14:00~翌5:00(最終受付翌3:30)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.676730520234450, 135.504935114431000], name:"AROMA CLINIC OSAKA(アロマクリニックオオサカ)", shopImg:"https://www.refle.info/salonImg/NzgyNkA1QDY1ZjE1NGM5ZjI2NDZAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/aromaclinic-osaka/", shopName:"AROMA CLINIC OSAKA(アロマクリニックオオサカ)", shopTel:"06-6265-8118", reserve:"(完全予約制)", time:"12:00~24:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.673051505880130, 135.509235646661750], name:"M‘s(エムズ)", shopImg:"https://www.refle.info/salonImg/NzM4N0AxMEA2MjQzZmY1NmQ1ZmMxQDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/ms-kansai/", shopName:"M‘s(エムズ)", shopTel:"090-5247-4154", reserve:"(予約優先)", time:"11:00~22:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.676758352855630, 135.503812347238720], name:"LUXY(ラグジー)", shopImg:"https://www.refle.info/salonImg/Mzk4MEAwQGY3NmExY2M0MTM1YzdlMThlZDlmNGRkMDI4N2QxZTBlQDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/relaxation-spa-luxy/", shopName:"LUXY(ラグジー)", shopTel:"06-4256-1638", reserve:"(完全予約制)", time:"10:00~翌5:00(最終受付翌3:00)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.673563062775370, 135.505015888954860], name:"1TI-RYU(イチリュウ)", shopImg:"https://www.refle.info/salonImg/NDk1MkAwQDNmN2E4MjlhNGFlMDEyNjFhYTg3YzQ1YzIzNTlkMjM5QDkwQDQyMA%3D%3D.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/menseste-iti-ryu/", shopName:"1TI-RYU(イチリュウ)", shopTel:"06-4256-0700", reserve:"(予約優先)", time:"10:00~24:00", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.671220700000000, 135.502490699999950], name:"PANTHEON(パンテオン) 心斎橋店", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"2", icon:"/images/googlemap/close/icon_massage_close.png", scaledSize : new google.maps.Size(20, 23), manage:"5", genreName:"店舗マッサージ", url:"/shop/olivespa-shinsaibashi/", shopName:"PANTHEON(パンテオン) 心斎橋店", shopTel:"06-4708-1088", reserve:"", time:"14:00~翌5: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; }