newLatLngBounds static method

MFCameraUpdate newLatLngBounds(
  1. MFLatLngBounds bounds,
  2. double padding
)

Returns a camera update that transforms the camera so that the specified geographical bounding box is centered in the map view at the greatest possible zoom level. A non-zero padding insets the bounding box from the map view's edges. The camera's new tilt and bearing will both be 0.0.

Implementation

static MFCameraUpdate newLatLngBounds(MFLatLngBounds bounds, double padding) {
  return MFCameraUpdate._(<Object>[
    'newLatLngBounds',
    bounds.toJson(),
    padding,
  ]);
}