AreaCameraBehavior class abstract

Use this class to show an overview of geo points.

By default, the orientation of the camera will be perpendicular to the Earth's surface (ie. looking towards the center of the Earth), while bearing will be towards north.

Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

Implemented types

Constructors

AreaCameraBehavior()
Creates a new instance of this class.
factory

Properties

cameraAnimationDuration ↔ Duration
The duration of camera animation in milliseconds. If there is an animation, it lasts for this duration. Defaults to 500 milliseconds, or half a second. Gets the current animation duration in milliseconds.
getter/setter pair
cameraBearingInDegrees ↔ double
Camera bearing in degrees. The direction in which the camera will point in degrees clockwise, relative to true North. The input should range between [0, 360]. Defaults to true North (0 degrees). Gets the current camera bearing.
getter/setter pair
cameraTiltInDegrees ↔ double
Camera tilt in degrees. The tilt of the camera relative to the axis perpendicular to the ground. Defaults to 0 degrees, meaning that it will look straight down into the ground. Gets the current camera tilt.
getter/setter pair
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
isCurrentPositionIncluded ↔ bool
Include current position in camera view. Decides if the current position should be added to the set of visible points. Note that if the current position is in the vicinity of any of the visible points, setting this to false will not explicitly exclude the current position from the camera view. However if displaying an area potentially away from the current position, this does need to be explicitly set to false or it will try to include the current position. Defaults to false. Gets whether to include the current position.
getter/setter pair
maxZoom ↔ double?
Maximal allowed zoom. Defines maximal zoom level to be applied to enclose geodetic bounding box. When not set, default maximal zoom is effectively applied. Gets maximal allowed zoom.
getter/setter pair
minZoom ↔ double?
Minimal allowed zoom. Defines minimal zoom level to be applied to enclose geodetic bounding box. When not set, default minimal zoom is effectively applied. Gets minimal allowed zoom.
getter/setter pair
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
principalPointAnimationDuration ↔ Duration
The duration of principal point animation in milliseconds. If the principal point is changed, the change is animated over this duration. Defaults to 500 milliseconds, or half a second. Gets the current principal point animation duration in milliseconds.
getter/setter pair
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

getVisiblePoints() → List<GeoCoordinates>
Gets configured visible geo points.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setVisiblePoints(List<GeoCoordinates> visiblePoints) → void
Sets the list of geo points to show in the camera view.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited