SpeedBasedCameraBehavior class abstract
Use this class to follow the current location of the user, zooming in and out and changing camera tilt according to the current speed.
- Implemented types
Constructors
- SpeedBasedCameraBehavior()
-
Creates a new instance of this class.
factory
Properties
- cameraTransitionMode ↔ CameraTransitionMode
-
Defines how the camera starts following the current position when this camera
behavior becomes active.
Use CameraTransitionMode.instant to skip the camera animation, for example
when returning from a route overview to guidance.
The default value is CameraTransitionMode.animated.
Gets the currently set camera transition mode.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- normalizedPrincipalPoint ↔ Anchor2D
-
The normalized principal point.
Normalized principal point to be used during navigation.
Defaults to (0.5, 0.775), which means the camera will use the position slightly at the bottom
of the mapview.
Gets the currently set normalized principal point to be used during navigation.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewRectangle ↔ Rectangle2D?
-
The view rectangle for camera updates.
Defines a sub-space of the screen that the behavior should consider
for camera updates. Using a view rectangle keeps the camera positioning consistent
across different screen types and orientations without per-screen principal point
adjustments.
Defaults to
null. If not set, it uses the viewport bounds of the underlying map view. Gets the current view rectangle, if it's set.getter/setter pairinherited
Methods
-
getProfile(
) → List< SpeedBasedCameraBehaviorProfileValue> - Gets the profile.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setProfile(
List< SpeedBasedCameraBehaviorProfileValue> profile) → void - Sets the profile.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
default2DProfile(
) → List< SpeedBasedCameraBehaviorProfileValue> -
Returns
List<SpeedBasedCameraBehaviorProfileValue>. the default 2D profile. -
default3DProfile(
) → List< SpeedBasedCameraBehaviorProfileValue> -
Returns
List<SpeedBasedCameraBehaviorProfileValue>. the default 3D profile.