FixedCameraBehavior class abstract
Use this class to follow the current location of the user: The camera will permanently look at the target location that was fed into the navigator instance.
Since location updates happen in discrete intervals, locations in-between will be interpolated to achieve a smooth camera movement.
- Implemented types
Constructors
- FixedCameraBehavior()
-
Creates a new instance of this class.
factory
Properties
- cameraBearingInDegrees ↔ double?
-
Camera bearing in degrees.
Optional fixed bearing, from true North (0 degrees) in clockwise direction. The valid range
is [0, 360].
If set, it will prevent the map from rotating to the direction of travel. For example, a
value of zero results in "north up" mode.
Defaults to
null, which means the camera derives the bearing from the Location, so that it points to the direction of travel. If this property isnulland the device does not provide bearing, the last known value is used or zero otherwise. Gets the currently set fixed bearing.getter/setter pair - cameraDistanceInMeters ↔ double
-
Camera distance in meters.
Camera distance to current location. The default value is 150 meters.
Gets the currently set camera distance to current location. The default value is 150 meters.
getter/setter pair
- cameraTiltInDegrees ↔ double
-
Camera tilt with axis parallel to the ground.
The default value is 50 degrees.
Gets the currently set camera tilt with axis parallel to the ground. The default value is 50 degrees.
getter/setter pair
- 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
- zoom ↔ MapMeasure
-
Zoom configuration. The default value is 150 meters.
Camera zoom configuration. The default value is 150 meters.
Gets the current camera's zoom configuration.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited