Find expert Insulation Contractors specializing in Spray foam insulation. Get top-rated services in with BuildX. Contact the best professionals today! (2024)

Showing 1 - 10 of 327 Results

#1 Insulation Guys

Rated 5/5(3 Reviews)

Bloomington, Minnesota, 55425, United States of America

View Profile

Request Estimate

Call

Call: +1 612-310-3248

31-W Insulation

Rated 4.3/5(3 Reviews)

Jacksonville, Florida, 32204, United States of America

View Profile

Request Estimate

Call

Call: +1 904-358-6224

View Profile

Request Estimate

Call

Call: +1 843-767-3380

31-W Insulation

Rated 2.3/5(3 Reviews)

Goodlettsville, Tennessee, 37072, United States of America

View Profile

Request Estimate

Call

Call: +1 877-241-4563

31-W Insulation

Rated 5/5(3 Reviews)

Goodlettsville, Tennessee, 37072, United States

View Profile

Request Estimate

Call

Call: +1 615-672-0534

316 Insulation

Rated 5/5(3 Reviews)

Auburn, Washington, 98001, United States of America

View Profile

Request Estimate

Call

Call: +1 253-332-7606

360 THERMAL

Rated 5/5(3 Reviews)

Houston, Texas, 77073, United States of America

View Profile

Request Estimate

Call

Call: +1 713-588-3626

Rated 5/5(3 Reviews)

Houston, Texas, 77069, United States

View Profile

Request Estimate

Call

Call: +1 832-243-7494

A+ Insulation

Rated 5/5(3 Reviews)

Lenexa, Kansas, 66215, United States

View Profile

Request Estimate

Call

Call: +1 913-281-2250

Absolute Spray Foam Insulation Auburn

Rated 5/5(3 Reviews)

Auburn, Washington, 98001, United States

View Profile

Request Estimate

Call

Call: +1 253-600-3081

`,/* Variables */currentMap: '',currentMarkers: [],currentInfoWindow: undefined,mapOpened: false,imagesLoaded: false,zoom: 15,myPosition: '',bounds: '',currentResult: {id: '',name: '',url: '',lat: '',lon: '',pic: ''},currentResultKey: 0,resultLocation: {lat: 0,lng: 0},membershipMarkers : { 0 : '/images/Copy-of-Untitled-54.png', 999 : '/images/location-marker-black5-transparent.png', 7 : '/images/location-marker-orange1.png', }, availableResults: [], infoWindowHTMLID: '', labelWithImage: 0, fullScreenResultsSidebar: 0, /* Functionality */init : function() { var mapLat = parseFloat(searchMap.getUrlParameter('lat')); var mapLng = parseFloat(searchMap.getUrlParameter('lng')); if (isNaN(mapLat) || isNaN(mapLng)) { mapLat = parseFloat('42.877742'); mapLng = parseFloat('-97.380979'); } var resultLocation = { lat: mapLat, lng: mapLng }; searchMap.resultLocation = resultLocation; searchMap.loadMap(); searchMap.loadMarkers(); $('.search-results-grid').masonry({ /* options */ itemSelector: '.search_result', columnWidth: '.search_result' }); searchMap.markerCluster.fitMapToMarkers(); /* Clickables */ $(document).on("click",".next-result",function(){ searchMap.nextResult(); }); $(document).on("click",".previous-result",function(){ searchMap.previousResult(); }); $(document).on("click", ".result-element", function(){ searchMap.setResult($(this).find("> div")); }); $(document).on("click", ".view-fullscreen", function(){ searchMap.toggleFullScreen(); }); $(document).on("click", ".mapView", function(){ /* Make full width */ $(".member_results .col-md-8, .member_results .col-md-9").attr("style", "width:100%;left: 0;"); $(".member_results .col-md-4, .member_results .col-md-3").attr("style", "display:none;"); $("#first_container > .container").attr("style", "width: 100%;"); $("div.header").attr("style", "display:none;"); /* Move the grid to the map view */ var resultElements = $('.member_results .grid-container').html(); $(".map_container .search-results-grid").html(resultElements); if (!$(".search-results-grid > div.search_result").eq(0).hasClass('grid')) { $(".search-results-grid > div.search_result").addClass('grid'); $(".search-results-grid > div.search_result > .grid_element").addClass('well'); } $(".search-results-grid > div").hide(); $(".search-results-grid > div.search_result").removeClass('col-md-4').addClass('col-md-6').show(); $(".search-results-grid > div.clearfix-lg").show(); $(".website-search.advanced-search-bar div, .map_container .clickToLoadMoreContainer").show(); if (!searchMap.mapOpened) { searchMap.mapOpened = true; /* Center the map data */ if (!searchMap.imagesLoaded) { $('.search-results-grid').imagesLoaded(function(){ searchMap.loadMarkers(); if (searchMap.currentMap && searchMap.bounds) { searchMap.currentMap.fitBounds(searchMap.bounds); } $('.search-results-grid').masonry({ /* options */ itemSelector: '.search_result', columnWidth: '.search_result' }); searchMap.imagesLoaded = true; searchMap.markerCluster.fitMapToMarkers(); }); } else { searchMap.loadMarkers(); if (searchMap.currentMap && searchMap.bounds) { searchMap.currentMap.fitBounds(searchMap.bounds); } $('.search-results-grid').masonry({ /* options */ itemSelector: '.search_result', columnWidth: '.search_result' }); searchMap.markerCluster.fitMapToMarkers(); } } }); $(document).on("click", ".listView, .gridView", function(){ if (searchMap.mapOpened) { $(".map_container > .search-results-grid").addClass('hidden'); $(".member_results .col-md-8, .member_results .col-md-9").attr("style", ""); $(".member_results .col-md-4, .member_results .col-md-3").attr("style", ""); $("#first_container > .container").attr("style", ""); $("div.header").attr("style", ""); $(".map_container .search-results-grid").html(''); $(".grid-container > div.clearfix-lg").show(); if ($(this).hasClass('gridView')) { listView.click(); gridView.click(); } $('.search-results-grid').masonry('destroy'); } }); $(document).on("click", ".view-result", function(){ window.location.href = searchMap.currentResult.url; }); $(document).on("click", ".map_container .search-results-grid .member_results, .map-grid-data .map-grid-sidebar .search_result", function(e){ var listingMarker = $(this).find('.google-pin-location').eq(0); if (listingMarker.length == 0) { listingMarker = $(this).nextAll('.google-pin-location').eq(0); } var listingURL = listingMarker.attr("data-filename"); var resultData = searchMap.availableResults.filter(obj => { return obj.url === listingURL }); if (searchMap.currentMap.getZoom() < 14) { searchMap.currentMap.setZoom(14); } if (searchMap.currentResult.url != resultData[0]['url']) { searchMap.setResult(resultData[0]); e.preventDefault(); e.stopPropagation(); } }); /* Load more results */ $(document).on("click", ".map_container #btnToLoadMorePost, .feature-search #btnToLoadMorePost, .map-grid-sidebar #btnToLoadMorePost, .clickToLoadMoreContainer > #btnToLoadMorePost", function(e){ e.preventDefault(); e.stopPropagation(); const queryString = `sized=0&mysql_real_escape_string_runned=1`; const profId = ``; const servId =null; const countryId = ``; const stateId = ``; const cityId = ``; const profs = {"new_filename":"search_results"}; const amountToSum = 15; let currentAmountText = document.querySelector('.current__amount__js'); let totalAmount = document.querySelector('.total__js'); if(typeof totalAmount !== "undefined" && totalAmount !== null){ let removeCommasAndDots = /[.,\s]/g; totalAmount = totalAmount.innerHTML.replace(removeCommasAndDots, ''); }; let featureDCId = this.dataset.dc; let currentPage = this.dataset.page; let dataType = this.dataset.type; let levId = this.dataset.lvl; this.dataset.page = parseInt(currentPage) + 1; let url = `/wapi/widget`; let currentBTN = this; let currentHTML = this.innerHTML; this.classList.add('loadingMore'); this.innerHTML = ` Loading...`; let formData = new FormData(); formData.append('dc_id', featureDCId); formData.append('header_type', 'html'); formData.append('request_type', 'POST'); formData.append('currentPage', currentPage); formData.append('dataType', dataType); formData.append('queryString', queryString); formData.append('profId', profId); formData.append('servId', JSON.stringify(servId)); formData.append('countryId', countryId); formData.append('stateId', stateId); formData.append('cityId', cityId); formData.append('levId', levId); formData.append('profsPost', JSON.stringify(profs)); formData.append('widget_name', 'Add-On - Bootstrap Theme - Search - Lazy Loader'); let myInit = { method: 'POST', body: formData }; fetch(url, myInit) .then(function (response) { return response.text(); }).then(function (html) { let parser = new DOMParser(); /* Parse the text */ let result = parser.parseFromString(html, "text/html"); let newResultsHTML = result.getElementById('grabHTML__js').innerHTML; let amountOfClicks = result.getElementById('grabHTML__js').dataset.pages; if ($('.search-results-grid').length && $('.search-results-grid > div').length) { $('.search-results-grid').append(newResultsHTML); $(".search-results-grid > div.search_result:not(.grid)").addClass('grid'); $(".search-results-grid > div.search_result.row-fluid:not(.col-md-6)").addClass('col-md-6'); $(".search-results-grid > div.search_result > .grid_element:not(.well)").addClass('well'); $('.search-results-grid').masonry('destroy'); $('.search-results-grid').imagesLoaded(function(){ $('.search-results-grid').masonry({ /* options */ itemSelector: '.search_result', columnWidth: '.search_result' }); }); if ($('.search-results-map').hasClass('full-screen') && searchMap.fullScreenResultsSidebar == 1) { $(newResultsHTML).insertAfter($('.map-grid-data .map-grid-sidebar .search_result:last')); } } else if ($('.grid-container').length) { $('.grid-container').append(newResultsHTML); if ($('.search-results-map').hasClass('full-screen') && searchMap.fullScreenResultsSidebar == 1) { $(newResultsHTML).insertAfter($('.map-grid-data .map-grid-sidebar .search_result:last')); } } setAmountPages(currentBTN, amountOfClicks); currentBTN.innerHTML = currentHTML; /* default html */ currentBTN.classList.remove('loadingMore'); if (typeof favoriteOn == 'function') { favoriteOn(); } if (typeof runRoyalSlider == 'function') { runRoyalSlider(); } if (typeof currentAmountText !== "undefined" && currentAmountText !== null) { let newAmount = parseInt(currentAmountText.innerHTML) + parseInt(amountToSum); if (newAmount >= parseInt(totalAmount)) { newAmount = document.querySelector('.total__js').innerHTML; } currentAmountText.innerHTML = newAmount.toString() } searchMap.loadMarkers(); google.maps.event.trigger(searchMap.currentMap, 'resize'); }).catch((error) => { console.error('Error:', error); }); }); }, loadMap : function() { var styles = [{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#444444"}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#f2f2f2"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":-100},{"lightness":45}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#222222"},{"visibility":"on"}]}]; var styledMap = new google.maps.StyledMapType(styles, {name: "Styled Map"}); var mapOptions = { center: searchMap.resultLocation, mapTypeControlOptions: {mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style']}, zoom: searchMap.zoom, controlSize: 26, mapTypeControl: false, streetViewControl: false, scrollwheel: true }; searchMap.currentMap = new google.maps.Map(document.getElementById('map-canvasDT'), mapOptions); searchMap.currentMap.mapTypes.set('map_style', styledMap); searchMap.currentMap.setMapTypeId('map_style'); var clusterOptions = { imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m', maxZoom: 19, minimumClusterSize: 2 }; searchMap.markerCluster = new MarkerClusterer(searchMap.currentMap, searchMap.currentMarkers, clusterOptions); google.maps.event.addListener(searchMap.currentMap, 'idle', function() { if (searchMap.markerCluster) { searchMap.markerCluster.clearMarkers(); searchMap.markerCluster.addMarkers(searchMap.currentMarkers); } }); }, /* Sets the map on all markers in the array. */ setMapOnAll : function (map) { for (let i = 0; i < searchMap.currentMarkers.length; i++) { searchMap.currentMarkers[i].setMap(map); } }, /* Removes the markers from the map, but keeps them in the array. */ hideMarkers : function () { searchMap.setMapOnAll(null); }, getUrlParameter : function(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split('&'); for (var i = 0; i < sURLVariables.length; i++) { var sParameterName = sURLVariables[i].split('='); if (sParameterName[0] == sParam) { return decodeURIComponent(sParameterName[1]); } } }, setMapMarkers : function(map, locations) { searchMap.bounds = new google.maps.LatLngBounds(); searchMap.newMarkers = new Array(); var resultKey; for (resultKey = 0; resultKey < locations.length; resultKey++) { var location = locations[resultKey]; var latlngset = new google.maps.LatLng(location.lat, location.lon); var iconImage = '/images/Copy-of-Untitled-54.png'; if (location.membershipID in searchMap.membershipMarkers) { iconImage = searchMap.membershipMarkers[location.membershipID]; } else { if (location.pin) { iconImage = location.pin; } else { iconImage = searchMap.membershipMarkers[0]; } } /* Load marker labels. */ var markerLabels = ''; if ($(".google-pin-location[data-filename='"+location.url+"']").attr('data-labels')) { var markerLabelsData = $(".google-pin-location[data-filename='"+location.url+"']").attr('data-labels'); markerLabelsData = JSON.parse(markerLabelsData); Object.keys(markerLabelsData).forEach(function(markerLabel,index) { var markerLabelValue = markerLabelsData[markerLabel]; if (markerLabelValue) { var markerLabelTemplate = `{label-value}`; markerLabelTemplate = markerLabelTemplate.replace(/{label-key}/g, markerLabel) .replace(/{label-value}/g, markerLabelValue); markerLabels += markerLabelTemplate; } }); } var markerName = location.label ?? location.name; if (searchMap.labelWithImage == 1) { var markerTitle = markerName; var markerImage = location.pic; if (markerImage) { var markerMarkup = `

{marker-title} {marker-labels}

Find expert Insulation Contractors specializing in Spray foam insulation. Get top-rated services in with BuildX. Contact the best professionals today! (11)

`; markerMarkup = markerMarkup.replace(/{marker-title}/g, markerTitle) .replace(/{marker-image}/g, markerImage) .replace(/{marker-labels}/g, markerLabels); markerName = $($.parseHTML(markerMarkup)).get(0); } } else { /* Default marker with basic markup. */ var markerMarkup = `

{marker-title} {marker-labels}

`; markerMarkup = markerMarkup.replace(/{marker-title}/g, markerName) .replace(/{marker-labels}/g, markerLabels); markerName = $($.parseHTML(markerMarkup)).get(0); } var marker = new MarkerWithLabel({ position: latlngset, map: map, icon: iconImage, labelContent: markerName, labelAnchor: new google.maps.Point(-15, 45), labelClass: "profile-map-label", labelInBackground: false, extraLayout: '' }); searchMap.currentMarkers[searchMap.currentMarkers.length] = marker; searchMap.newMarkers[searchMap.newMarkers.length] = marker; var content = searchMap.infoWindowTemplate; content = content.replace(/{result-picture}/g, location.pic) .replace(/{result-url}/g, location.url) .replace(/{result-name}/g, location.name) .replace(/{result-phone-hidden}/g, (location.phone && location.phone!='')?'':'hidden') .replace(/{result-phone-number}/g, location.phone) .replace(/{result-extra}/g, location.extraLayout); var infowindow = new google.maps.InfoWindow(); google.maps.event.addListener(marker,'click', (function(marker,content,infowindow,location,resultKey){ return function() { infowindow.setContent(content); infowindow.open(map,marker); if (typeof searchMap.currentInfoWindow !== 'undefined') { searchMap.currentInfoWindow.close(); searchMap.currentInfoWindow = null; } searchMap.setResultData(location); searchMap.currentMap.panTo(searchMap.resultLocation); searchMap.currentInfoWindow = infowindow; searchMap.currentResultKey = resultKey; }; })(marker,content,infowindow,location,resultKey)); } for (resultKey = 0; resultKey < searchMap.availableResults.length; resultKey++) { var locationResult = searchMap.availableResults[resultKey]; var latlngset = new google.maps.LatLng(parseFloat(locationResult.lat), parseFloat(locationResult.lon)); searchMap.bounds.extend(latlngset); } if (searchMap.currentMap) { searchMap.currentMap.fitBounds(searchMap.bounds); } searchMap.markerCluster.clearMarkers(); searchMap.markerCluster.addMarkers(searchMap.currentMarkers); }, loadMarkers : function() { /* Load the markers */ searchMap.newResults = new Array(); $('.map_container .google-pin-location:not(.loaded), .grid-container .google-pin-location:not(.loaded)').each(function () { if ($(this).hasClass('loaded')) { return; } if (searchMap.availableResults.filter(x => x.url === $(this).attr("data-filename")).length) { return; } $(this).addClass('loaded'); var membershipID = 0; var extraLayoutHTML = ''; if (searchMap.infoWindowHTMLID && $(this).parent().find(searchMap.infoWindowHTMLID).length) { extraLayoutHTML = $(this).parent().find(searchMap.infoWindowHTMLID).get(0).outerHTML; } if ($(this).hasClass('post')) { } else { /* Load the listing data. */ var memberElement = $(this).parents('.member_results').eq(0); if (memberElement && memberElement.attr('class')) { var classes = memberElement.attr('class').split(' '); $.each(classes, function(i, name) { if (name.indexOf('level_') === 0) { membershipID = name.substring('level_'.length); } }); } } var categoryID = 0; /* Making the icon */ if ($(this).attr("data-name") != "") { searchMap.availableResults[searchMap.availableResults.length] = { id: searchMap.availableResults.length, name: $(this).attr("data-name"), label: $(this).attr("data-marker-label"), url: $(this).attr("data-filename"), lat: $(this).attr("data-lat"), lon: $(this).attr("data-lng"), pic: $(this).attr("data-photo"), phone: $(this).attr("data-phone"), pin: $(this).attr('data-icon'), membershipID: membershipID, extraLayout: extraLayoutHTML }; searchMap.newResults[searchMap.newResults.length] = { id: searchMap.availableResults.length, name: $(this).attr("data-name"), label: $(this).attr("data-marker-label"), url: $(this).attr("data-filename"), lat: $(this).attr("data-lat"), lon: $(this).attr("data-lng"), pic: $(this).attr("data-photo"), phone: $(this).attr("data-phone"), pin: $(this).attr('data-icon'), membershipID: membershipID, extraLayout: extraLayoutHTML }; } }); if (searchMap.newResults) { searchMap.setMapMarkers(searchMap.currentMap, searchMap.newResults); if (searchMap.newResults.length) { searchMap.setResultData(searchMap.newResults[0]); } searchMap.markerCluster.fitMapToMarkers(); } }, toggleFullScreen : function() { if (!$(".search-results-map").hasClass("full-screen")) { // Activate full screen mode. $(".search-results-map").addClass("full-screen"); // Load the results on the sidear. if (searchMap.fullScreenResultsSidebar == 1) { var resultElements; if ($('.member_results .grid-container').length) { resultElements = $('.member_results .grid-container').html(); } else if ($('.feature-search .grid-container').length) { resultElements = $('.feature-search .grid-container').html(); } $(".map-grid-data .map-grid-sidebar").html(resultElements); $(".map-grid-data .map-grid-sidebar").append(`

`); $(".map-grid-data .map-grid-sidebar").append($(".clickToLoadMoreContainer").eq(0).html()); $(".map-grid-data .map-grid-sidebar").append(`

`); $(".map-grid-data .map-grid-sidebar > div").hide(); $(".map-grid-data .map-grid-sidebar > div.search_result").removeClass('col-md-4').addClass('col-md-12').show(); $(".map-grid-data .map-grid-sidebar > div.clearfix, .map-grid-data .map-grid-sidebar > div.clickToLoadMoreBtn").show(); $(".website-search.advanced-search-bar div, .map_container .clickToLoadMoreContainer").show(); $(".map-grid-data .map-grid-sidebar.hidden").removeClass('hidden'); } $("#map-actions .view-fullscreen").html(` Exit Fullscreen`); $("body").css("overflow","hidden"); } else { $(".search-results-map").removeClass("full-screen"); $("#map-actions .view-fullscreen").html(` Fullscreen`); $("body").css("overflow",""); $(".map-grid-data .map-grid-sidebar").html(''); } }, setResultData : function(result) { searchMap.currentResult.id = result["id"]; searchMap.currentResult.name = result["name"]; searchMap.currentResult.url = result["url"]; searchMap.currentResult.lat = parseFloat(result["lat"]); searchMap.currentResult.lon = parseFloat(result["lon"]); searchMap.currentResult.pic = result["pic"]; searchMap.currentResult.pin = result["pin"]; searchMap.currentResult.phone = result["phone"]; searchMap.currentResult.label = result["label"]; searchMap.currentResult.extraLayout = result["extraLayout"]; var resultLocation = { lat: searchMap.currentResult.lat, lng: searchMap.currentResult.lon }; searchMap.resultLocation = resultLocation; if ($('.search-results-map').hasClass('full-screen') && searchMap.fullScreenResultsSidebar == 1) { $(".map-grid-sidebar").animate({ scrollTop: $(".map-grid-sidebar").scrollTop() + $(`.map-grid-sidebar .google-pin-location[data-filename='` + result['url'] + `']`).eq(0).parents('.search_result').eq(0).offset().top - $(".map-grid-sidebar").offset().top }, {duration: 'medium', easing: 'swing'}); } else if ($(`.search-results-grid .google-pin-location[data-filename='`+result['url']+`']`).eq(0).parents('.search_result').eq(0).offset()) { $(".search-results-grid").animate({ scrollTop: $(".search-results-grid").scrollTop() + $(`.search-results-grid .google-pin-location[data-filename='` + result['url'] + `']`).eq(0).parents('.search_result').eq(0).offset().top - $(".search-results-grid").offset().top }, {duration: 'medium', easing: 'swing'}); } }, setMapMarker : function(withPopup = true) { /* Clear old marker */ if (searchMap.currentInfoWindow) { searchMap.currentInfoWindow.close(); searchMap.currentInfoWindow = null; } var iconImage = '/images/Copy-of-Untitled-54.png'; var markerName = searchMap.currentResult.name; searchMap.currentMarker = new google.maps.Marker({ position: searchMap.currentMap.getCenter(), map: searchMap.currentMap, icon: iconImage, title: markerName }); if (withPopup) { var phonehtml = ''; var windowTemplate = searchMap.infoWindowTemplate; windowTemplate = windowTemplate.replace(/{result-picture}/g, searchMap.currentResult.pic) .replace(/{result-url}/g, searchMap.currentResult.url) .replace(/{result-name}/g, searchMap.currentResult.name) .replace(/{result-phone-hidden}/g, (searchMap.currentResult.phone && searchMap.currentResult.phone!='')?'':'hidden') .replace(/{result-phone-number}/g, searchMap.currentResult.phone) .replace(/{owner-url}/g, searchMap.currentResult.ownerURL) .replace(/{result-extra}/g, searchMap.currentResult.extraLayout ?? ''); searchMap.currentInfoWindow = new google.maps.InfoWindow({ content: windowTemplate }); searchMap.currentInfoWindow.open(searchMap.currentMap, searchMap.currentMarker); } searchMap.currentMarker.setMap(searchMap.currentMap); }, setResult : function(resultData) { searchMap.setResultData(resultData); searchMap.currentMap.panTo(searchMap.resultLocation); searchMap.setMapMarker(); }, nextResult : function(){ if (searchMap.currentResultKey > -1) { searchMap.currentResultKey++; if (searchMap.currentResultKey in searchMap.availableResults) { searchMap.setResult(searchMap.availableResults[searchMap.currentResultKey]); } else { searchMap.currentResultKey = 0; searchMap.setResult(searchMap.availableResults[searchMap.currentResultKey]); } } else { searchMap.currentResultKey = 0; searchMap.setResult(searchMap.availableResults[searchMap.currentResultKey]); } }, previousResult : function(){ if (searchMap.currentResultKey > 0) { searchMap.currentResultKey--; if (searchMap.currentResultKey in searchMap.availableResults) { searchMap.setResult(searchMap.availableResults[searchMap.currentResultKey]); } else { searchMap.currentResultKey = searchMap.availableResults.length-1; searchMap.setResult(searchMap.availableResults[searchMap.currentResultKey]); } } else { searchMap.currentResultKey = searchMap.availableResults.length-1; searchMap.setResult(searchMap.availableResults[searchMap.currentResultKey]); } }, whenAvailable : function(name, callback) { var interval = 10; window.setTimeout(function() { var nameparts = name.split('.'); if (nameparts.length == 1) { if (window[name]) { callback(window[name]); } else { searchMap.whenAvailable(name, callback); } } else if (nameparts.length == 2) { if (window[nameparts[0]] && window[nameparts[0]][nameparts[1]]) { callback(window[name]); } else { searchMap.whenAvailable(name, callback); } } }, interval); },};$(document).ready(function(){if (window['google'] && window['google']['maps']) { /* Load marker clusterer and label scripts */ var clusterScripts = [ 'https://thewebsitelauncher.com/resources/markerclusterer/markerclusterer.js', 'https://thewebsitelauncher.com/resources/google/markerwithlabel.js' ]; clusterScripts.forEach(function(scriptURL){ var scriptElement = document.createElement('script'); scriptElement.type = 'text/javascript'; scriptElement.src = scriptURL; $("body").append(scriptElement); }); searchMap.whenAvailable("MarkerClusterer", function () { searchMap.init(); });} else {searchMap.whenAvailable("google.maps", function () { /* Load marker clusterer and label scripts */ var clusterScripts = [ 'https://thewebsitelauncher.com/resources/markerclusterer/markerclusterer.js', 'https://thewebsitelauncher.com/resources/google/markerwithlabel.js' ]; clusterScripts.forEach(function(scriptURL){ var scriptElement = document.createElement('script'); scriptElement.type = 'text/javascript'; scriptElement.src = scriptURL; $("body").append(scriptElement); }); searchMap.whenAvailable("MarkerClusterer", function () { searchMap.init(); });});}});

Find expert Insulation Contractors specializing in Spray foam insulation. Get top-rated services in  with BuildX. Contact the best professionals today! (2024)

References

Top Articles
Latest Posts
Article information

Author: Barbera Armstrong

Last Updated:

Views: 5536

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Barbera Armstrong

Birthday: 1992-09-12

Address: Suite 993 99852 Daugherty Causeway, Ritchiehaven, VT 49630

Phone: +5026838435397

Job: National Engineer

Hobby: Listening to music, Board games, Photography, Ice skating, LARPing, Kite flying, Rugby

Introduction: My name is Barbera Armstrong, I am a lovely, delightful, cooperative, funny, enchanting, vivacious, tender person who loves writing and wants to share my knowledge and understanding with you.