CustomGeometrySource
class CustomGeometrySource(id: String, options: CustomGeometrySourceOptions) : StyleContract.StyleSourceExtension
Content copied to clipboard
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)
Content copied to clipboard
Functions
bindTo
Link copied to clipboard
Add the source to the Style.
invalidRegion
Link copied to clipboard
Invalidate region for provided custom geometry source.
invalidTile
Link copied to clipboard
Invalidate tile for provided custom geometry source.
setTileData
Link copied to clipboard
fun setTileData(tileID: CanonicalTileID, featureCollection: MutableList<Feature>)
Content copied to clipboard
Set tile data of a custom geometry.