Camera class abstract

Camera tracks location, user input and provide new CameraPosition for map.

Implemented types

Constructors

Camera()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
switchModesAutomatically bool
If enabled, camera will automatically switch between modes:
getter/setter pair

Methods

addListener(CameraListener cameraListener) → void
The class does not retain the object in the 'cameraListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
cameraMode() CameraMode
isValid() bool
Usable only in runWithBlockUi or listener handlers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(CameraListener cameraListener) → void
setAutoRotation({required bool enabled, Animation? animation}) → void
Set autorotation in 'Following' camera mode. If disabled, the map will be rotated so that the north is on top. animation parameter ignored if camera currently not in the 'Following' mode. Enabled by default.
setAutoZoom({required bool enabled, Animation? animation}) → void
Set autozoom in 'Following' camera mode. animation parameter ignored if camera currently not in the 'Following' mode. Enabled by default.
setCameraMode(CameraMode mode, {Animation? animation}) → void
setExtraOverviewPoints(List<Point>? points) → void
Given points will be visible when camera switches to 'Overview' mode. It is useful when you draw some extra info on the map out of routes.
setFollowingModeZoomOffset({required double offset, Animation? animation}) → void
Add offset value to zoom in following mode. 0.0 by default.
setOverviewRect({ScreenRect? rect, Animation? animation}) → void
Defines area, where all routes should be shown in 'Overview' mode. If overviewRect is null, mapWindow.focusRect used.
toString() String
A string representation of this object.
inherited

Operators

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