Map Camera Manager Delegate
interface MapCameraManagerDelegate
Content copied to clipboard
Definition of a camera delegate. Any invocation will interact with the map's actual camera.
Functions
cameraForCoordinateBounds
Link copied to clipboard
abstract fun cameraForCoordinateBounds(bounds: CoordinateBounds, padding: EdgeInsets = EdgeInsets(0.0, 0.0, 0.0, 0.0), bearing: Double? = null, pitch: Double? = null): CameraOptions
Content copied to clipboard
cameraForCoordinates
Link copied to clipboard
abstract fun cameraForCoordinates(coordinates: List<Point>, camera: CameraOptions, box: ScreenBox): CameraOptions
Content copied to clipboard
Convenience method that adjusts the provided camera options object for given argumentsReturns the provided \p camera with zoom adjusted to fit \p coordinates into \p box, so that coordinates on the left, top and right of the effective camera center at the principal point of the projection (defined by padding) fit into \p box.
abstract fun cameraForCoordinates(coordinates: List<Point>, padding: EdgeInsets = EdgeInsets(0.0, 0.0, 0.0, 0.0), bearing: Double? = null, pitch: Double? = null): CameraOptions
Content copied to clipboard
cameraForGeometry
Link copied to clipboard
abstract fun cameraForGeometry(geometry: Geometry, padding: EdgeInsets = EdgeInsets(0.0, 0.0, 0.0, 0.0), bearing: Double? = null, pitch: Double? = null): CameraOptions
Content copied to clipboard
coordinateBoundsForCamera
Link copied to clipboard
abstract fun coordinateBoundsForCamera(camera: CameraOptions): CoordinateBounds
Content copied to clipboard
coordinateBoundsZoomForCamera
Link copied to clipboard
abstract fun coordinateBoundsZoomForCamera(camera: CameraOptions): CoordinateBoundsZoom
Content copied to clipboard
coordinateBoundsZoomForCameraUnwrapped
Link copied to clipboard
abstract fun coordinateBoundsZoomForCameraUnwrapped(camera: CameraOptions): CoordinateBoundsZoom
Content copied to clipboard
coordinateForPixel
Link copied to clipboard
coordinatesForPixels
Link copied to clipboard
abstract fun coordinatesForPixels(pixels: List<ScreenCoordinate>): List<Point>
Content copied to clipboard
dragStart
Link copied to clipboard
getBounds
Link copied to clipboard
getDragCameraOptions
Link copied to clipboard
abstract fun getDragCameraOptions(fromPoint: ScreenCoordinate, toPoint: ScreenCoordinate): CameraOptions
Content copied to clipboard
getFreeCameraOptions
Link copied to clipboard
pixelForCoordinate
Link copied to clipboard
pixelsForCoordinates
Link copied to clipboard
abstract fun pixelsForCoordinates(coordinates: List<Point>): List<ScreenCoordinate>
Content copied to clipboard
setBounds
Link copied to clipboard
abstract fun setBounds(options: CameraBoundsOptions): Expected<String, None>
Content copied to clipboard
setCamera
Link copied to clipboard
Properties
cameraState
Link copied to clipboard
Represents current camera state.
Inheritors
MapboxMap
Link copied to clipboard