Camera

interface Camera

This class handles calculating all properties necessary to configure the camera position while routing. The MapLibreNavigation uses a SimpleCamera by default. If you would like to customize the camera position, create a concrete implementation of this class or subclass SimpleCamera and set it on MapLibreNavigation constructor.

Since

0.10.0

Inheritors

Functions

Link copied to clipboard
abstract fun bearing(routeInformation: RouteInformation): Double

Direction that the camera is pointing in, in degrees clockwise from north.

Link copied to clipboard
abstract fun overview(routeInformation: RouteInformation): List<Point>

List of points that must be visible in the camera view to show full route overview.

Link copied to clipboard
abstract fun target(routeInformation: RouteInformation): Point?

The location that the camera is pointing at.

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). See tilt(float) for details of restrictions on the range of values.

Link copied to clipboard
abstract fun zoom(routeInformation: RouteInformation): Double

Zoom level near the center of the screen. See zoom(float) for the definition of the camera's zoom level.