var currentInfoWindow = null; //最後に開いた情報ウィンドウを記憶 var contentStr = null; var stationList = [ {"latlng":[34.830827813509050, 134.693393089487760], name:"神の指先 Lucia(ルチア)", shopImg:"https://www.refle.info/salonImg/Nzg1MUAxMEA2NjJiNjExNmM1YjE5QDkwQDQyMA%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/lucia/", shopName:"神の指先 Lucia(ルチア)", shopTel:"080-7404-7285", reserve:"(完全予約制)", time:"11:00~翌3:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.831454874894130, 134.686028073903230], name:"Beautiful Butterfly(ビューティフルバタフライ)", shopImg:"https://www.refle.info/salonImg/NzY5MEA1QDYzZmQ1NmZiMzdmMGJAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/beautiful-butterfly/", shopName:"Beautiful Butterfly(ビューティフルバタフライ)", shopTel:"070-3247-5493", reserve:"(完全予約制)", time:"10:00~翌4:00(最終受付翌3:00)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.829106950447160, 134.689097786978380], name:"Lemonade 姫路店(レモネード)", shopImg:"https://www.refle.info/salonImg/NjgxOUAxMEA2NjIyNjE3ZmQ2MmQwQDkwQDQyMA%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/lemonade-himeji/", shopName:"Lemonade 姫路店(レモネード)", shopTel:"080-4986-8964", reserve:"(完全予約制)", time:"10:00~翌2:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.827334126516780, 134.697319134816580], name:"姫路 ITADAKI SPA", shopImg:"https://www.refle.info/salonImg/NzkxM0AxMEA2NTdjMjM0NzQ2MmJhQDkwQDQyMA%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/itadakispa/", shopName:"姫路 ITADAKI SPA", shopTel:"090-3730-1044", reserve:"(完全予約制)", time:"9:00~翌3:00(受付時間9:00~翌2:00)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.824580715543190, 134.694119447349000], name:"大人のメンエス倶楽部", shopImg:"https://www.refle.info/salonImg/Nzg3M0AxMEA2NTNiN2RhMzJmZGI3QDkwQDQyMA%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/otona-este/", shopName:"大人のメンエス倶楽部", shopTel:"070-3791-3273", reserve:"(完全予約制)", time:"10:00~翌3:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.829611426229830, 134.689316601258130], name:"AZ(アズ)", shopImg:"https://www.refle.info/salonImg/NzE1MEAxMEA2MTU2ODY0MzM5ZDk2QDkwQDQyMA%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/az-himeji/", shopName:"AZ(アズ)", shopTel:"080-5579-5656", reserve:"(完全予約制)", time:"10:00~24:00", 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.825757774071580, 134.686810683397700], name:"APEX(アペックス)", shopImg:"https://www.refle.info/salonImg/NzQ0MUA1QDY1YmIwZTMzYzFjYjJAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/apex/", shopName:"APEX(アペックス)", shopTel:"090-8678-8998", reserve:"(完全予約制)", time:"10:00~翌1:00(受付時間9:00~24:00)", closed:"年中無休", mapDisable:"0" }, {"latlng":[34.830438662278610, 134.692381558148300], name:"One Rose 姫路店(ワンローズ)", shopImg:"https://www.refle.info/salonImg/Nzg0NUAxMEA2NTY5YWU0ZjMzYTA4QDkwQDQyMA%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/onerose-himeji/", shopName:"One Rose 姫路店(ワンローズ)", shopTel:"090-5533-7610", reserve:"(要予約)", time:"10:00~翌5:00(受付時間9:00~翌5:00)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.824685534011160, 134.687832745998000], name:"e.l.f(エルフ)", shopImg:"https://www.refle.info/salonImg/NzM3OEAxMEA2NTFkNjNmODhhYzI1QDkwQDQyMA%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/elf/", shopName:"e.l.f(エルフ)", shopTel:"080-2696-0551", reserve:"(完全予約制)", time:"10:00~翌1:00", closed:"不定休", mapDisable:"0" }, {"latlng":[34.822253158233920, 134.689384299405700], name:"Lily(リリー)", shopImg:"https://www.refle.info/salonImg/NzkzNEAxMEA2NWExMGY5YTVkZWQ3QDkwQDQyMA%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/lilyhimeji/", shopName:"Lily(リリー)", shopTel:"070-9183-0962", reserve:"(完全予約制)", time:"10:00~翌1:00(受付時間9:00~24: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(最終受付24:00)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.780425358353280, 134.750708027800700], 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(最終受付24:00)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.830455799211340, 134.692365677315540], name:"Cinderella girl(シンデレラ ガール)", shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg", open:"1", icon:"/images/googlemap/open/icon_massage.png", scaledSize : new google.maps.Size(30, 34.5), manage:"30", genreName:"メンズエステ", url:"/shop/cinderellagirl/", shopName:"Cinderella girl(シンデレラ ガール)", shopTel:"090-2609-6787", reserve:"", time:"10:00~翌5:00(受付時間9:00~翌5:00)", closed:"不定休", mapDisable:"0" }, {"latlng":[34.830660255795000, 134.695849137999740], name:"STAR LIGHT(スターライト)", shopImg:"https://www.refle.info/salonImg/NzUzNkAxMEA2MzA1OGYzN2I4NTRjQDkwQDQyMA%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/starlight/", shopName:"STAR LIGHT(スターライト)", shopTel:"070-8937-8648", reserve:"(予約優先)", time:"10:00~翌4: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; }