function callbackUpdateMapDinners(layer, resultsArray, places, hasMore, VEErrorMessage) { $("#dinnerList").empty(); clearMap(); var center = map.GetCenter(); $.post("/Search/SearchByLocation", { latitude: center.Latitude, longitude: center.Longitude }, function(dinners) { $.each(dinners, function(i, dinner) { var LL = new VELatLong(dinner.Latitude, dinner.Longitude, 0, null); var RsvpMessage = ""; if (dinner.RSVPCount == 1) RsvpMessage = "" + dinner.RSVPCount + "RSVP"; else RsvpMessage = "" + dinner.RSVPCount + "RSVPs"; // Add Pin to Map LoadPin(LL, '' + dinner.Title + '', "

" + dinner.Description + "

" + RsvpMessage); //Add a dinner to the