CameraUpdate class
Defines a camera move, supporting absolute moves as well as moves relative the current position.
Constructors
- CameraUpdate.bearingTo(double bearing)
- Returns a camera update that sets the camera bearing.
- CameraUpdate.scrollBy(double dx, double dy)
- Returns a camera update that moves the camera target the specified screen distance.
- CameraUpdate.tiltTo(double tilt)
- Returns a camera update that sets the camera bearing.
- CameraUpdate.zoomBy(double amount, [Offset? focus])
-
Returns a camera update that modifies the camera zoom level by the
specified amount. The optional
focus
is a screen point whose underlying geographical location should be invariant, if possible, by the movement.factory - CameraUpdate.zoomIn()
- Returns a camera update that zooms the camera in, bringing the camera closer to the surface of the Earth.
- CameraUpdate.zoomOut()
- Returns a camera update that zooms the camera out, bringing the camera further away from the surface of the Earth.
- CameraUpdate.zoomTo(double zoom)
- Returns a camera update that sets the camera zoom level.
- CameraUpdate.newCameraPosition(CameraPosition cameraPosition)
- Returns a camera update that moves the camera to the specified position.
- CameraUpdate.newLatLng(LatLng latLng)
- Returns a camera update that moves the camera target to the specified geographical location.
- 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
andbottom
padding insets the bounding box from the map view's edges. The camera's new tilt and bearing will both be 0.0. - CameraUpdate.newLatLngZoom(LatLng latLng, double zoom)
- Returns a camera update that moves the camera target to the specified geographical location and zoom level.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited