MapCameraManagerDelegate

Definition of a camera delegate. Any invocation will interact with the map's actual camera.

Functions

Link copied to clipboard
abstract fun cameraForCoordinateBounds(bounds: CoordinateBounds, boundsPadding: EdgeInsets? = null, bearing: Double? = null, pitch: Double? = null, maxZoom: Double? = null, offset: ScreenCoordinate? = null): CameraOptions

Convert the given bounds, boundsPadding, bearing and pitch values to CameraOptions. Note that this method takes into account the current map padding in addition to the boundsPadding provided in parameters.

Link copied to clipboard
abstract fun cameraForCoordinates(coordinates: List<Point>, camera: CameraOptions, box: ScreenBox): CameraOptions

Convenience method that adjusts the provided CameraOptions object for given parameters.

abstract fun cameraForCoordinates(coordinates: List<Point>, coordinatesPadding: EdgeInsets? = null, bearing: Double? = null, pitch: Double? = null): CameraOptions

Convenience method that returns the CameraOptions object for given parameters. This method takes into account the current map padding in addition to the padding provided in parameters.

abstract fun cameraForCoordinates(coordinates: List<Point>, camera: CameraOptions, coordinatesPadding: EdgeInsets?, maxZoom: Double?, offset: ScreenCoordinate?): CameraOptions

Convenience method that returns the CameraOptions object for given parameters.

Link copied to clipboard
abstract fun cameraForDrag(fromPoint: ScreenCoordinate, toPoint: ScreenCoordinate): CameraOptions

Calculates a target point where the camera should move after dragging from a screen coordinate startCoordinate to another coordinate endCoordinate.

Link copied to clipboard
abstract fun cameraForGeometry(geometry: Geometry, geometryPadding: EdgeInsets? = null, bearing: Double? = null, pitch: Double? = null): CameraOptions

Convert the given geometry, geometryPadding, bearing and pitch values to CameraOptions. Note that this method takes into account the current map padding in addition to the geometryPadding provided in parameters.

Link copied to clipboard

Returns the CoordinateBounds for a given camera.

Link copied to clipboard

Returns the CoordinateBounds for a given camera.

Link copied to clipboard

Returns the CoordinateBounds for given RectF defined in screen points.

Link copied to clipboard

Returns the coordinate bounds and zoom for a given camera.

Link copied to clipboard

Returns the unwrapped coordinate bounds and zoom for a given camera.

Link copied to clipboard
abstract fun coordinateForPixel(pixel: ScreenCoordinate): Point

Calculates a geographical coordinate(i.e., longitude-latitude pair) that corresponds to a screen coordinate.

Link copied to clipboard

Calculates the geographical coordinate information that corresponds to a given screen coordinate.

Link copied to clipboard
abstract fun coordinatesForPixels(pixels: List<ScreenCoordinate>): List<Point>

Calculates geographical coordinates(i.e., longitude-latitude pair) that corresponds to screen coordinates.

Link copied to clipboard

Calculates the geographical coordinates information that corresponds to the given screen coordinates.

Link copied to clipboard
abstract fun getBounds(): CameraBounds

Returns the bounds of the map.

Link copied to clipboard
Link copied to clipboard

Gets the map's current free camera options. After mutation, it should be set back to the map.

Link copied to clipboard
abstract fun pixelForCoordinate(coordinate: Point): ScreenCoordinate

Calculates a screen coordinate that corresponds to a geographical coordinate (i.e., longitude-latitude pair).

Link copied to clipboard
abstract fun pixelsForCoordinates(coordinates: List<Point>): List<ScreenCoordinate>

Calculates screen coordinates that corresponds to geographical coordinates (i.e., longitude-latitude pair).

Link copied to clipboard

Sets the bounds of the map.

Link copied to clipboard
abstract fun setCamera(cameraOptions: CameraOptions)

Changes the map view by any combination of center, zoom, bearing, and pitch, without an animated transition. The map will retain its current values for any details not passed via the camera options argument. It is not guaranteed that the provided CameraOptions will be set, the map may apply constraints resulting in a different CameraState.

abstract fun setCamera(freeCameraOptions: FreeCameraOptions)

Sets the map view with the free camera options.

Link copied to clipboard

Sets the map MapCenterAltitudeMode that defines behavior of the center point altitude for all subsequent camera manipulations.

Properties

Link copied to clipboard
abstract val cameraState: CameraState

Represents current camera state.

Inheritors

Link copied to clipboard