public static LatLngBounds BoundsOf(IEnumerable <LatLng> points) { LatLngBounds result = null; foreach (var point in points) { if (point == null) { continue; } if (result == null) { result = BoundsOf(point); } else { result.ExtentToContain(point); } } return(result); }