CameraController class

///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////

Constructors

CameraController.new(MapboxMap mapboxMap)
//////////// ////////////

Properties

hashCode int
The hash code for this object.
no setterinherited
mapboxMap MapboxMap
//////////// ////////////
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

adjustCameraForSpeed(RaliPosition position, double speedKmh, {double? bearing, bool isOTSMode = true, int duration = 300}) Future<void>
Adjusts camera based on vehicle speed
enterNorthUpMode(RaliPosition position) Future<void>
Enters north-up view mode (standard map view)
enterOverTheShoulderMode(RaliPosition position, double bearing) Future<void>
//////////// //////////// Enters over-the-shoulder view mode
enterRouteOverviewMode(RouteDetails route) Future<void>
//////////// //////////// Enters route overview mode to display the entire route
fitRouteInView(RouteDetails route, {double padding = 50.0, double pitch = 0.0, double bearing = 0.0, int duration = 1500}) Future<void>
Fits the camera view to show an entire route
flyToLocation(RaliPosition position, {double zoom = 14.0, double pitch = 45.0, double bearing = 0.0, int duration = 1000}) Future<void>
//////////// //////////// Flies the camera to a specific location with customizable parameters
flyToLocationWithBearing(RaliPosition position, {double? bearing, double zoom = 17.0, double pitch = 70.0, int duration = 100, double? speed}) Future<void>
Flies to location with bearing calculated from movement direction in OTS view
getCurrentCameraState() Future<CameraState>
Gets the current camera state
getPitchForSpeed(double speedKmh) double
Gets appropriate pitch angle based on speed
getZoomForSpeed(double speedKmh) double
//////////// //////////// Gets appropriate zoom level based on speed
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
positionToScreenPoint(RaliPosition position) Future<ScreenCoordinate?>
Converts a geographical position to a screen point
screenPointToPosition(ScreenCoordinate screenPoint) Future<RaliPosition?>
//////////// //////////// Converts a screen point to a geographical position
stopCameraAnimation() Future<void>
Stops any ongoing camera animations
toString() String
A string representation of this object.
inherited
zoomIn() Future<void>
//////////// //////////// Zooms in the camera by one zoom level
zoomOut() Future<void>
Zooms out the camera by one zoom level

Operators

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