center property

MPPoint get center

Calculates the center of the bounds

Implementation

MPPoint get center {
  var latCenter = (northeast.latitude + southwest.latitude) / 2.0;
  var lngCenter = (northeast.longitude + southwest.longitude) / 2.0;
  return MPPoint.withCoordinates(latitude: latCenter, longitude: lngCenter);
}