"; } website="
" + addresses[i].website +"
"; if(addresses[i].marker_colour != "main"){ pin_colour = " style='background-image:url(\"/apps/store-locator/markers/"+addresses[i].marker_colour+"2.png\")' "; } html = html + "
  • "+addresses[i].distance+"
    "+addresses[i].address+"" + website + directions + "
  • "; } if(addresses.length == 0){ html = "
  • "+noStoresFound+"
  • "; } jQuery(".addresses ul").html(html); jQuery(".addresses ul").slideDown(); fixURLS(); } function focus_and_popup(id, updated_at){ var marker; var directions =""; if(find_directions){ directions="
    "+getDirections+"
    "; } for(i=0; i 0){ marker = markersArray[i]; boldMap.panTo(marker.getPosition()); //add price tier id to bust the cache because we want to get updated store details when we switch plans jQuery.getJSON('https://stores.boldapps.net/front-end/get_store_info.php?shop=feel-foods-ltd.myshopify.com&data=detailed&store_id='+id+'&tm='+updated_at+'-'+25, function (data){ infoPopup.close(); infoPopup.setContent("
    "+data.data + directions +"
    "); infoPopup.open(boldMap,marker); }); }else if(markersArray[i].id == id && id == 0){ marker = markersArray[i]; boldMap.panTo(marker.getPosition()); infoPopup.close(); infoPopup.setContent("
    "+ youAreHere +"
    "); infoPopup.open(boldMap,marker); } } } function codeAddress(){ var address = jQuery("#address_search").val(); if(address == "Postal/Zip Code"){ address=""; } if(address){ geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { boldMap.setCenter(results[0].geometry.location); find_new_stores(1); } else { alert('Error finding your address please review your criteria and try again'); } }); }else{ find_new_stores(); } } var to_marker; function calcRoute(id) { var from = false; var to = false; for(i=0; i 0){ var my_route = result.routes[0]; var j,k; for(j=0; j
    "+stepCount+".
    " + mystep.instructions + "
    " + mystep.distance.text + "
    ") stepCount++; } } } jQuery("#addresses_list").slideUp(function (){ jQuery("#directions_text").slideDown(); }); for(i=0; i

    Store Locator