newLatLngBounds static method

CameraUpdate newLatLngBounds(
  1. LatLngBounds bounds, {
  2. double left = 0,
  3. double top = 0,
  4. double right = 0,
  5. double bottom = 0,
})

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 left, top, right and bottom 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 CameraUpdate newLatLngBounds(LatLngBounds bounds,
    {double left = 0, double top = 0, double right = 0, double bottom = 0}) {
  return CameraUpdate._(<dynamic>[
    'newLatLngBounds',
    bounds.toList(),
    left,
    top,
    right,
    bottom,
  ]);
}