CustomGeometrySource

class CustomGeometrySource(id: String, options: CustomGeometrySourceOptions) : Source

Custom Geometry 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

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

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 geometry source.

Link copied to clipboard
fun invalidateTile(tileID: CanonicalTileID)

Invalidate tile for provided custom geometry source.

Link copied to clipboard
fun invalidRegion(coordinateBounds: CoordinateBounds)

Invalidate region for provided custom geometry source.

Link copied to clipboard
fun invalidTile(tileID: CanonicalTileID)

Invalidate tile for provided custom geometry source.

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

Set tile data of a custom geometry.

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.