Builder

class Builder(sourceId: String)

Builder for ImageSource.

Parameters

sourceId

the ID of the source

Constructors

Builder
Link copied to clipboard
fun Builder(sourceId: String)

Functions

build
Link copied to clipboard
fun build(): ImageSource

Build the ImageSource.

coordinates
Link copied to clipboard
fun coordinates(value: List<List<Double>>): ImageSource.Builder

Corners of image specified in longitude, latitude pairs.

prefetchZoomDelta
Link copied to clipboard
fun prefetchZoomDelta(value: Long = 4L): ImageSource.Builder

When loading a map, if PrefetchZoomDelta is set to any number greater than 0, the map will first request a tile at zoom level lower than zoom - delta, but so that the zoom level is multiple of delta, in an attempt to display a full map at lower resolution as quick as possible. It will get clamped at the tile source minimum zoom. The default delta is 4.

url
Link copied to clipboard
fun url(value: String): ImageSource.Builder

URL that points to an image.

Properties

sourceId
Link copied to clipboard
val sourceId: String