toBounds static method
Implementation
static GMULatLngBounds toBounds(num x, num y, num radiusInMeters) {
Point center = Point(x, y);
num distanceFromCenterToCorner = radiusInMeters * sqrt(2.0);
Point southwestCorner =
SphericalUtils.computeOffset(center, distanceFromCenterToCorner, 225.0);
Point northeastCorner =
SphericalUtils.computeOffset(center, distanceFromCenterToCorner, 45.0);
return GMULatLngBounds(
northEast: northeastCorner,
southWest: southwestCorner,
);
}