Builder

Builder for ImageSource.

class Builder(sourceId: String)

Parameters

sourceId

the ID of the source

Constructors

Builder
Link copied to clipboard

the ID of the source

fun Builder(sourceId: String)

Functions

build
Link copied to clipboard

Build the ImageSource.

fun build(): ImageSource
coordinates
Link copied to clipboard

Corners of image specified in longitude, latitude pairs.

fun coordinates(value: List<List<Double>>): ImageSource.Builder
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
prefetchZoomDelta
Link copied to clipboard

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.

fun prefetchZoomDelta(value: Long): ImageSource.Builder
toString
Link copied to clipboard
open override fun toString(): String
url
Link copied to clipboard

URL that points to an image.

fun url(value: String): ImageSource.Builder

Properties

sourceId
Link copied to clipboard

the ID of the source

val sourceId: String