Camera

abstract class Camera

This class handles calculating camera's zoom and tilt properties while routing. The NavigationMapboxMap uses a SimpleCamera by default. If you would like to customize the camera properties, create a concrete implementation of this class or subclass SimpleCamera and update NavigationMapboxMap.setCamera or NavigationViewOptions.Builder.camera.

See also

Constructors

Camera
Link copied to clipboard
fun Camera()

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
overview
Link copied to clipboard
abstract fun overview(routeInformation: RouteInformation): List<Point>
Return a list of route coordinates that should be visible when creating the route's overview.
tilt
Link copied to clipboard
abstract fun tilt(routeInformation: RouteInformation): Double
The angle, in degrees, of the camera angle from the nadir (directly facing the Earth).
toString
Link copied to clipboard
open fun toString(): String
zoom
Link copied to clipboard
abstract fun zoom(routeInformation: RouteInformation): Double
Zoom level near the center of the screen.

Inheritors

SimpleCamera
Link copied to clipboard