CameraUpdate class
Defines a camera move, supporting absolute moves as well as moves relative the current position.
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
Static Methods
-
azimuthTo(
double azimuth) → CameraUpdate - Returns a camera update that sets the camera bearing.
-
newBounds(
BoundingBox boundingBox, {ScreenRect? focusRect}) → CameraUpdate -
Returns a camera update that moves the camera target to the specified
geographical location in the custom focus rect.
If
focusRect
is null then the current focus rect is used. -
newCameraPosition(
CameraPosition cameraPosition) → CameraUpdate - Returns a camera update that moves the camera to the specified position.
-
newGeometry(
Geometry geometry, {ScreenRect? focusRect}) → CameraUpdate -
Returns a camera update that moves the camera target to the specified
geographical location in the custom focus rect.
If
focusRect
is null then the current focus rect is used. -
newTiltAzimuthBounds(
BoundingBox boundingBox, {double azimuth = 0, double tilt = 0, ScreenRect? focusRect}) → CameraUpdate -
Returns a camera update so that the specified
geographical bounding box is centered in the map view at the greatest
possible zoom level in the custom focus rect.
If
focusRect
is null then the current focus rect is used. The camera's new tilt and bearing will both be 0.0. -
newTiltAzimuthGeometry(
Geometry geometry, {double azimuth = 0, double tilt = 0, ScreenRect? focusRect}) → CameraUpdate -
Returns a camera update so that the specified
geographical bounding box is centered in the map view at the greatest
possible zoom level in the custom focus rect.
If
focusRect
is null then the current focus rect is used. The camera's new tilt and bearing will both be 0.0. -
tiltTo(
double tilt) → CameraUpdate - Returns a camera update that sets the camera bearing.
-
zoomIn(
) → CameraUpdate - Returns a camera update that zooms the camera in, bringing the camera closer to the surface of the Earth.
-
zoomOut(
) → CameraUpdate - Returns a camera update that zooms the camera out, bringing the camera further away from the surface of the Earth.
-
zoomTo(
double zoom) → CameraUpdate - Returns a camera update that sets the camera zoom level.