MapSnapshotInterface

interface MapSnapshotInterface

An image snapshot of a map rendered by `map snapshotter`.

Functions

attributions
Link copied to clipboard
abstract fun attributions(): List<String>
Get list of attributions for the sources in this snapshot.
coordinate
Link copied to clipboard
abstract fun coordinate(screenCoordinate: ScreenCoordinate): Point
Calculate geographical coordinates from a point on the snapshot.
image
Link copied to clipboard
abstract fun image(): Image
Get the rendered snapshot `image`.
screenCoordinate
Link copied to clipboard
abstract fun screenCoordinate(coordinate: Point): ScreenCoordinate
Calculate screen coordinate on the snapshot from geographical `coordinate`.

Inheritors

MapSnapshot
Link copied to clipboard

Extensions

bitmap
Link copied to clipboard
fun MapSnapshotInterface.bitmap(): Bitmap
Extension function to obtain Bitmap from snapshotter converted from Image.