ImageSourceState

class ImageSourceState(val sourceId: String = generateRandomSourceId("image"), initialProperties: List<Triple<String, Boolean, Value>> = emptyList()) : SourceState

An image data source.

See also

Parameters

sourceId

The id of the source state, by default a random generated ID will be used.

initialProperties

The initial mutable properties of the source.

Constructors

Link copied to clipboard
fun ImageSourceState(sourceId: String = generateRandomSourceId("image"), initialProperties: List<Triple<String, Boolean, Value>> = emptyList())

Types

Link copied to clipboard
object Companion

Public companion object.

Functions

Link copied to clipboard
open override fun toString(): String

Overrides the toString method to print more meaningful information.

Properties

Link copied to clipboard

Corners of image specified in longitude, latitude pairs. Note: When using globe projection, the image will be centered at the North or South Pole in the respective hemisphere if the average latitude value exceeds 85 degrees or falls below -85 degrees.

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.

Link copied to clipboard
open override val sourceId: String
Link copied to clipboard
var url: Url

URL that points to an image. If the URL is not specified, the image is expected to be loaded directly during runtime.