centerFromLatLngBounds static method
Calculate the center of the boundaries to a Point in latitude and longitude
see: https://stackoverflow.com/a/30859321/3182210
return
the Point representing the center of the gmuLatLngBounds
Implementation
static Point centerFromLatLngBounds(GMULatLngBounds gmuLatLngBounds) {
Point northEast = gmuLatLngBounds.northEast;
Point southWest = gmuLatLngBounds.southWest;
double centerLatitudeBound = (northEast.x + southWest.x) / 2;
double centerLongitudeBound = (northEast.y + southWest.y) / 2;
Point center = Point(centerLatitudeBound, centerLongitudeBound);
return center;
}