newLatLngBounds static method

CameraUpdate newLatLngBounds(
  1. LatLngBounds 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.


static CameraUpdate newLatLngBounds(LatLngBounds bounds, double padding) {
  return CameraUpdate._(<Object>[