Microsoft U.S. office locations
Microsoft reaches customers at sales offices, support centers and technology centers throughout the country. Use the clickable map or the location links for more information.
', results[i].AddressLine, '
', results[i].Locality, ', '); listItems.push(results[i].AdminDistrict, ', ', results[i].CountryRegion, '
', results[i].PostalCode, '
');
listItems.push('', results[i].Locality, ', '); listItems.push(results[i].AdminDistrict, ', ', results[i].CountryRegion, '
', results[i].PostalCode, '
View directions');
if (itemtype == "store") {
listItems.push('');
}
else {
listItems.push('
');
}
listItems.push('');
}
listItems.push("");
if (listItems.length No results found for this criteria.');
}
// Use the array of locations from the results to set the map view to show all locations.
if (locs.length > 1) {
map.setView({ bounds: Microsoft.Maps.LocationRect.fromLocations(locs), padding: 80 });
}
else {
map.setView({ center: locs[0], zoom: 15 });
}
// Add the list items to the results panel.
$('.locator-side-panel').html(listItems.join(''));
// Add a click event to the title of each list item.
$('.locator-side-panel .list-item-title').each(function () {
$(this).click(function () {
// Get the ID of the selected location
var id = $(this).attr('rel');
//Loop through all the pins in the data layer and find the pushpin for the location.
var pin;
for (var i = 0; i ";
InfoBoxHTML += "";
InfoBoxHTML += "
";
InfoBoxHTML += "" + pin.Metadata.Name + "
";
InfoBoxHTML += "
" + pin.Metadata.AddressLine + "
" + pin.Metadata.Locality + ", " + pin.Metadata.AdminDistrict + ", " + pin.Metadata.CountryRegion + " " + pin.Metadata.PostalCode + "
" + pin.Metadata.Phone + "