CustomRasterSource

Describes the Custom Raster Source to be used in the style.

To add the data, implement the CustomRasterSourceOptions.fetchTileFunction callback and call setTileData when needed.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open override fun bindTo(delegate: MapboxStyleManager)

Add the source to the Style.

Link copied to clipboard
fun invalidateRegion(coordinateBounds: CoordinateBounds)

Invalidate region for provided custom raster source.

Link copied to clipboard

Invalidate tile for provided custom raster source.

Link copied to clipboard
fun setTileData(tileID: CanonicalTileID, bitmap: Bitmap?)
fun setTileData(tileID: CanonicalTileID, image: Image?)

Set tile data for a raster tile.

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

Returns a human readable string that includes the cached properties of the source.

Properties

Link copied to clipboard

The ID of the Source.