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