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: Expression): ImageSource.Builder
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 for zoom - delta in a 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: Expression): ImageSource.Builder
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: Expression): ImageSource.Builder
fun url(value: String): ImageSource.Builder

Properties

sourceId
Link copied to clipboard

the ID of the source

val sourceId: String