","type":"Studio","lat":"26.1401174","lng":"-80.1209571","phone1":"800 421 5850","phone2":"","mail":"info@4u-fitness.com","web":"http://www.4u-fitness.com","facebook":"http://www.facebook.com/4ufitness","instagram":"http://www.instagram.com/4ufitnessllc"},{"address":"2061 NW 2nd Ave, Boca Raton, FL 33431, USA","name":"4U Fitness","type":"Studio","lat":"26.36968","lng":"-80.0903553","phone1":"800 421 5850","phone2":"","mail":"info@4u-fitness.com","web":"http://www.4u-fitness.com","facebook":"http://www.facebook.com/4ufitness","instagram":"http://www.instagram.com/4ufitnessllc"},{"address":"7610 N Stemmons Fwy, Dallas, TX 75247, USA","name":"My20Fitness","type":"Studio","lat":"32.8209236","lng":"-96.86898450000001","phone1":"","phone2":"","mail":"my20fitness@yahoo.com","web":"http://my20fitness.us","facebook":"https://www.facebook.com/My20Fitness-158395971624539/?hc_ref=ARQzScndxpVY9muJIJFrz1whQwY-xAiIQHc103v2CHMH9XYpf83O9t_ijxndf4kEGxQ&fref=nf","instagram":"https://www.instagram.com/my20fitness/"},{"address":"201 SE 2nd Ave, Miami, FL 33131, USA","name":"EFIT USA LLC","type":"Distributor","lat":"25.7721744","lng":"-80.18949529999998","phone1":"+1 833-334-8367","phone2":"","mail":"sales@nwd.fitness","web":"http://e-fit.us/index.php","facebook":"","instagram":""}]};data.locations.forEach(function(item){i=1;i++;if(item.type=='Distributor'){l_icon=new google.maps.MarkerImage("images/marker.png",null,null,null,new google.maps.Size(30,40));zi=i+'100';} if(item.type=='Headquarter'){l_icon=new google.maps.MarkerImage("images/marker2.png",null,null,null,new google.maps.Size(33,45));zi=i+'10000';} if(item.type=='Studio'){l_icon=new google.maps.MarkerImage("images/marker3.png",null,null,null,new google.maps.Size(23,30));zi=i;} studio_address=item.address.charAt(0).toUpperCase()+item.address.slice(1).toLowerCase();std_add=`Address:${studio_address}
`;studio_name=item.name.charAt(0).toUpperCase()+item.name.slice(1).toLowerCase();studio_name=studio_name.replace("Efit","E-Fit");studio_name=studio_name.replace("E fit","E-Fit");studio_name=studio_name.replace("E-fit","E-Fit");studio_name=studio_name.replace("E.fit","E-Fit");studio_name=studio_name.replace("e-fit","E-Fit");studio_name=studio_name.replace("efit","E-Fit");std_nm=`
${studio_name}
`;studio_phone1=item.phone1;studio_phone2=item.phone2;if(studio_phone1!=''){std_ph1=`Phone:${studio_phone1}
`;}else{std_ph1='';} if(studio_phone2!=''){std_ph2=`Phone 2:${studio_phone2}
`;}else{std_ph2='';} studio_email=item.mail;if(studio_email!=''){std_ml=`Email:${studio_email}
`;}else{std_ml='';} studio_web=item.web;if(studio_web!=''){std_wb=`Website:${studio_web}`;}else{std_wb='';} if(item.facebook!=''){std_fb=`
  • `}else{std_fb='';} if(item.instagram!=''){std_ig=`
  • `}else{std_ig='';} if(item.instagram!=''||item.facebook!=''){content=std_nm+'

    '+std_add+std_ph1+std_ph2+std_ml+std_wb+'

    ';}else{content=std_nm+'

    '+std_add+std_ph1+std_ph2+std_ml+std_wb+'

    ';} marker1=new google.maps.Marker({title:item.name,position:new google.maps.LatLng(item.lat,item.lng),category:item.type,map:map,icon:l_icon,zIndex:zi});gmarkers1.push(marker1);google.maps.event.addListener(marker1,'click',(function(marker1,content){return function(){infowindow.setContent(content);infowindow.open(map,marker1);this.setZIndex(google.maps.Marker.MAX_ZINDEX+1);}})(marker1,content));let geocoder=new google.maps.Geocoder();});} filterMarkers=function(category){for(i=0;i