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.

Constructors

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

Functions

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

Add the source to the Style.

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

Invalidate region for provided custom geometry source.

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

Invalidate tile for provided custom geometry source.

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

Set tile data of a custom geometry.

Properties

id
Link copied to clipboard
val id: String

Style source identifier.

options
Link copied to clipboard
val options: CustomGeometrySourceOptions

Settings for the custom geometry.