SnapshotOverlay

abstract class SnapshotOverlay

An instance of overlay allowing to draw custom content directly over the snapshot image on the Canvas.

Functions

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

Calculate geographical coordinates from a point on the snapshot.

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

Calculate screen coordinate on the snapshot from geographical coordinate.

Properties

Link copied to clipboard
abstract val attributions: List<String>

List of attributions for the sources in this snapshot.

Link copied to clipboard
abstract val canvas: Canvas

Canvas that should be used for drawing on top of the snapshot image.