toBoundsFromPoints method

GoogleMapsUtilsLatLngBounds toBoundsFromPoints(
  1. List<Point<double>> points
)

Computes the smallest bounding box that contains all points.

Returns a record (ne: Point<double>, sw: Point<double>).

Implementation

GoogleMapsUtilsLatLngBounds toBoundsFromPoints(List<Point<double>> points) {
  final internal = SphericalUtils.toBoundsFromPoints(points);
  return (ne: internal.northEast, sw: internal.southWest);
}