var currentInfoWindow = null; //最後に開いた情報ウィンドウを記憶 var contentStr = null; var stationList = [ {"latlng":[34.697126284557980, 135.193830126950080], name:"癒しSPA", shopImg:"https://www.refle.info/salonImg/ODA1MkAxMEA2NjQ1NjI1NjA0MDJiQDkwQDQyMA%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/iyashispa/", shopName:"癒しSPA", shopTel:"070-4175-6574", reserve:"(予約優先)", time:"10:00~翌5:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.696147463134466, 135.197438706780600], name:"ゆりかご 神戸尼崎店", shopImg:"https://www.refle.info/salonImg/NjM4MkAxMEA1ZWYyYjlhNjEyYmJmQDkwQDQyMA%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/yurikago-kobe/", shopName:"ゆりかご 神戸尼崎店", shopTel:"070-1482-6413", reserve:"(予約優先)", time:"10:00~翌5:00/日10:00~翌2:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.825723137042424, 134.686805501188640], name:"KIRARI(キラリ)", shopImg:"https://www.refle.info/salonImg/ODE3MEAxMEA2NzIzNTVlZTYxZTY0QDkwQDQyMA%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/kirari-esthe/", shopName:"KIRARI(キラリ)", shopTel:"090-9696-4488", reserve:"(予約優先)", time:"10:00~翌1:00(受付時間10:00~24:30)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.696490476859540, 135.195812138302270], name:"Kobe Matelasse(コウベ マトラッセ)", shopImg:"https://www.refle.info/salonImg/ODA1M0AxMEA2NjY3N2U2YzRlMDFlQDkwQDQyMA%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/kobe-matelasse/", shopName:"Kobe Matelasse(コウベ マトラッセ)", shopTel:"080-6909-8241", reserve:"(完全予約制)", time:"10:00~翌5:00(受付時間9:00~翌5:00)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.697180964133090, 135.192496885879140], name:"KINGDOM(キングダム)", shopImg:"https://www.refle.info/salonImg/Nzk1N0A1QDY1ZTAzZDE3Y2JjN2NAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/ms-kingdom/", shopName:"KINGDOM(キングダム)", shopTel:"080-9412-4534", reserve:"(完全予約制)", time:"11:00~翌4:00", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.825745705554340, 134.686799466218360], name:"XIV(エックスアイブイ)", shopImg:"https://www.refle.info/salonImg/NzAwNkAxMEA2NmQ0NGEzZjdjYTVjQDkwQDQyMA%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/xiv9/", shopName:"XIV(エックスアイブイ)", shopTel:"070-9145-8998", reserve:"(完全予約制)", time:"10:00~翌1:00(受付時間10:00~24:00)", closed:"年中無休(年末年始・大型連休も営業中)", mapDisable:"0" }, {"latlng":[34.688783837827870, 135.185917713872270], name:"bryth(ブライス)", shopImg:"https://www.refle.info/salonImg/NjM5OUAxMEA2NGQ0NGM2ZmViNWY5QDkwQDQyMA%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/bryth-kobe/", shopName:"bryth(ブライス)", shopTel:"080-6688-8544", reserve:"(完全予約制)", time:"10:00~翌5:00(受付時間9:00~翌3:30)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.833023885502090, 134.689267828241700], name:"ミセスメルティー 姫路店", shopImg:"https://www.refle.info/salonImg/NjI5NUAxMEA2NGVhMGI5MGQzY2FlQDkwQDQyMA%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/melty-himeji/", shopName:"ミセスメルティー 姫路店", shopTel:"070-1805-7657", reserve:"(予約優先)", time:"9:00~翌2:00(最終受付)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.697443043272436, 135.192951976074820], name:"ミセス・ムーンR 神戸店", shopImg:"https://www.refle.info/salonImg/NTM5OUAxMEA2NWM1OTQ4ZjEwY2M5QDkwQDQyMA%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/misesumoonr-kobe/", shopName:"ミセス・ムーンR 神戸店", shopTel:"070-4281-3339", reserve:"(完全予約制)", time:"10:00~翌5:00(最終受付翌5:00)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.696140232994770, 135.197430117196660], name:"EKICHIKA(エキチカ)", shopImg:"https://www.refle.info/salonImg/Nzc5M0AxMEA2NGY4NTVkODU4YTY3QDkwQDQyMA%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/ekichikakobe/", shopName:"EKICHIKA(エキチカ)", shopTel:"090-3088-7124", reserve:"(完全予約制)", time:"10:00~翌1:00(受付時間9:00~23:00)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.689433298622510, 135.189467149056440], name:"PANAKEIA(パナケイア)", shopImg:"https://www.refle.info/salonImg/NzY0MkAxMEA2MzkwMTBiMTE1YzhhQDkwQDQyMA%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/panakeia/", shopName:"PANAKEIA(パナケイア)", shopTel:"080-9121-7593", reserve:"(完全予約制)", time:"10:00~翌3:00(受付時間9:30~翌1:00)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.820578801909910, 134.687643561376940], name:"COCOAT(ココアット)", shopImg:"https://www.refle.info/salonImg/NTI2NkAxMEA2NmIxZGIzNzY2ODMxQDkwQDQyMA%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/cocoat-aroma/", shopName:"COCOAT(ココアット)", shopTel:"070-1826-0110", reserve:"(完全予約制)", time:"10:00~翌6:30(最終受付)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.697092865943650, 135.193729841733560], name:"Jerk off time(ジーク オフ タイム)", shopImg:"https://www.refle.info/salonImg/MjI5M0AxMEA1ZjYzNWY0OTk0ZDU5QDkwQDQyMA%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/j-o-t/", shopName:"Jerk off time(ジーク オフ タイム)", shopTel:"090-6979-0961", reserve:"(完全予約制)", time:"10:00~24:00(最終受付)", closed:"年中無休", mapDisable:"1" }, {"latlng":[34.735029408816450, 135.339235653372950], name:"S-class(エスクラス)", shopImg:"https://www.refle.info/salonImg/Nzk2MUAxMEA2NWQ2YjQ0Nzg5M2ZmQDkwQDQyMA%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/sclassdesu/", shopName:"S-class(エスクラス)", shopTel:"070-5437-8989", reserve:"(完全予約制)", time:"10:00~翌3:00", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.829152482160210, 134.685435179115870], name:"Aroma Angel(アロマエンジェル)", shopImg:"https://www.refle.info/salonImg/NDY1OEAwQDEyMzVkYzk1OGMwYzc1ZTAyM2VhYjA3ODk4YmYxOTg1QDkwQDQyMA%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/aloma-angel/", shopName:"Aroma Angel(アロマエンジェル)", shopTel:"079-280-5304", reserve:"(完全予約制)", time:"11:00~24:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.732652989384080, 135.307744890134610], name:"Larus(ラルス)", shopImg:"https://www.refle.info/salonImg/NzU2NEAxMEA2MzJhY2M4ZTViYTRkQDkwQDQyMA%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/larusspa/", shopName:"Larus(ラルス)", shopTel:"080-2396-2146", reserve:"(完全予約制)", time:"10:00~翌3:00", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.827711592369430, 134.684160444821600], name:"BlissSPA(ブリスパ)", shopImg:"https://www.refle.info/salonImg/ODE2OUAxMEA2NzE2MjEwNzZjOTE4QDkwQDQyMA%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/bliss-spa-himeji/", shopName:"BlissSPA(ブリスパ)", shopTel:"080-7975-3077", reserve:"(完全予約制)", time:"11:00~翌3:00(受付時間10:00~翌2:00)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.697377937219840, 135.193768945438360], name:"白ねこエステ", shopImg:"https://www.refle.info/salonImg/NDY0MEAwQGU2YWFlNzRkYmViNWVlYjIyYjIyMmMyMDQxNDk2ZGYzQDkwQDQyMA%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/shironeko/", shopName:"白ねこエステ", shopTel:"080-3840-4696", reserve:"", time:"10:00~翌5:00(受付時間10:00~翌3:30)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.696080100076360, 135.198819937434400], name:"鍵(かぎ)", shopImg:"https://www.refle.info/salonImg/NzY5NUAxMEA2NDEyYmE3NDlmNTllQDkwQDQyMA%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/kagi/", shopName:"鍵(かぎ)", shopTel:"090-2707-5540", reserve:"(完全予約制)", time:"10:00~22:00(受付時間8: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; }