var currentInfoWindow = null; //最後に開いた情報ウィンドウを記憶
var contentStr = null;
var stationList = [
{"latlng":[34.869651100000000,
135.778410099999970],
name:"源氏の湯",
shopImg:"https://www.refle.info/salonImg/MjczNkAxMEA1ZjBkNGQ0ZjU5OWM5QDkwQDQyMA%3D%3D.jpeg",
open:"1",
icon:"/images/googlemap/open/icon_bathhouse.png",
scaledSize : new google.maps.Size(30, 34.5),
manage:"25",
genreName:"スーパー銭湯",
url:"/shop/genji-yu/",
shopName:"源氏の湯",
shopTel:"0774-41-2615",
reserve:"",
time:"10:00~翌1:00/土日9:00~翌1:00(最終受付24:00)",
closed:"年中無休(※施設点検日を除く)",
mapDisable:"0"
},
{"latlng":[35.668356000000000,
135.079705000000000],
name:"あしぎぬ温泉",
shopImg:"https://www.refle.info/salonImg/MTQ2OUAxMEA1ZjBiZmI2ZjhlN2VhQDkwQDQyMA%3D%3D.jpeg",
open:"1",
icon:"/images/googlemap/open/icon_bathhouse.png",
scaledSize : new google.maps.Size(30, 34.5),
manage:"25",
genreName:"スーパー銭湯",
url:"/shop/ashiginuonsen/",
shopName:"あしぎぬ温泉",
shopTel:"0772-65-2000",
reserve:"",
time:"10:00~22:00(最終受付21:30)",
closed:"水曜、水曜日が祝日の場合は営業",
mapDisable:"0"
},
{"latlng":[35.421080500000000,
135.330606100000070],
name:"光の湯",
shopImg:"https://www.refle.info/salonImg/QEBAOTBANDIw.jpeg",
open:"1",
icon:"/images/googlemap/open/icon_bathhouse.png",
scaledSize : new google.maps.Size(20, 23),
manage:"5",
genreName:"スーパー銭湯",
url:"/shop/hikarv/",
shopName:"光の湯",
shopTel:"0773-77-1126",
reserve:"",
time:"10:00~23:00(最終受付22: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 = '';
url = ''+station.shopName+'';
}else{
imgurl = station.shopName;
url = station.shopName;
}
if(manage <= 5){
contentStr = '
'+url+'
'; contentStr += ''+genreName+'
'; contentStr += ''+url+'
'; contentStr += ''+genreName+'
'; contentStr += ''+station.time+'
'; contentStr += ''+station.closed+'
'; contentStr += ''+url+'
'; contentStr += ''+genreName+'
'; contentStr += ''+station.time+'
'; contentStr += ''+station.closed+'
'; contentStr += '