Grab a card at any of these locations.
'
+ location.vendor.name
+ '
' + location.address + ', ' + location.city + ', ' + location.state + ' ' + location.zip; if (!!location.phone) { infoWindowContent += '
' + location.phone; } if (!!location.hours) { infoWindowContent += '
' + location.hours; } if (!!location.vendor.vendorRuleSet) { infoWindowContent += '
' + location.vendor.vendorRuleSet; } infoWindowContent += '
';
//alert(infoWindowContent);
setMapZoom(map, marker);
infowindow
.setContent(infoWindowContent);
infowindow.open(map, marker);
};
})(marker, location));
}
}
}
function calculateMapSize(){
var w = $('#googlemap_locations').width();
var s = $('#map_canvas').width();
var result = w - s - 1; //1px because padding can wreck this
//console.log(w + "-" + s +"=" + result);
$('#map_key_container').width(result);
$('#map_key_container').css('margin-left', s);
}
//$(window).resize(function() {
//calculateMapSize();
//});
' + location.address + ', ' + location.city + ', ' + location.state + ' ' + location.zip; if (!!location.phone) { infoWindowContent += '
' + location.phone; } if (!!location.hours) { infoWindowContent += '
' + location.hours; } if (!!location.vendor.vendorRuleSet) { infoWindowContent += '
' + location.vendor.vendorRuleSet; } infoWindowContent += '