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)
the ID of the source

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.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
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.
toString
Link copied to clipboard
open fun toString(): String
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
the ID of the source