CustomGeometrySource

Custom Vector Source, allows using FeatureCollections.

CustomGeometrySource uses a coalescing model for frequent data updates targeting the same tile id, which means, that the in-progress request as well as the last scheduled request are guaranteed to finish. Any requests scheduled meanwhile can be canceled.

class CustomGeometrySource(id: String, options: CustomGeometrySourceOptions) : StyleContract.StyleSourceExtension

Constructors

CustomGeometrySource
Link copied to clipboard
fun CustomGeometrySource(id: String, options: CustomGeometrySourceOptions)

Functions

bindTo
Link copied to clipboard

Add the source to the Style.

open override fun bindTo(delegate: StyleInterface)
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
invalidRegion
Link copied to clipboard

Invalidate region for provided custom geometry source.

fun invalidRegion(coordinateBounds: CoordinateBounds)
invalidTile
Link copied to clipboard

Invalidate tile for provided custom geometry source.

fun invalidTile(tileID: CanonicalTileID)
setTileData
Link copied to clipboard

Set tile data of a custom geometry.

fun setTileData(tileID: CanonicalTileID, featureCollection: MutableList<Feature>)
toString
Link copied to clipboard
open override fun toString(): String

Properties

id
Link copied to clipboard

Style source identifier.

val id: String
options
Link copied to clipboard

Settings for the custom geometry.

val options: CustomGeometrySourceOptions