/// <summary> /// Load all the placemark objects that are within the specified area. /// </summary> /// <param name="google">The Google helper class that does the database leg-work.</param> /// <returns>A collection of Placemark objects inside the radius.</returns> public override List <Placemark> LoadPlacemarks(Google google) { List <Placemark> items = new List <Placemark>(); if (PopulateWith == PopulationType.Individuals) { foreach (Placemark p in google.PersonPlacemarksInArea(AreaID, 0, Int32.MaxValue)) { items.Add(p); } } else if (PopulateWith == PopulationType.Families) { foreach (Placemark p in google.FamilyPlacemarksInArea(AreaID, 0, Int32.MaxValue)) { items.Add(p); } } else if (PopulateWith == PopulationType.SmallGroups) { foreach (Placemark p in google.SmallGroupPlacemarksInArea(AreaID, 0, Int32.MaxValue)) { items.Add(p); } } return(items); }