Computed Source
A map data source of tiled vector data generated with some custom logic
Constructors
Link copied to clipboard
actual constructor(id: String, options: ComputedSourceOptions, getFeatures: (bounds: BoundingBox, zoomLevel: Int) -> FeatureCollection)
expect constructor(id: String, options: ComputedSourceOptions = ComputedSourceOptions(), getFeatures: (bounds: BoundingBox, zoomLevel: Int) -> FeatureCollection)
actual constructor(id: String, options: ComputedSourceOptions, getFeatures: (bounds: BoundingBox, zoomLevel: Int) -> FeatureCollection)
actual constructor(id: String, options: ComputedSourceOptions, getFeatures: (bounds: BoundingBox, zoomLevel: Int) -> FeatureCollection)
actual constructor(id: String, options: ComputedSourceOptions, getFeatures: (bounds: BoundingBox, zoomLevel: Int) -> FeatureCollection)
Functions
Link copied to clipboard
Invalidate previously provided features within a given bounds at all zoom levels. Invoking this method will result in new requests to getFeatures for regions that contain, include, or intersect with the provided bounds.
Link copied to clipboard
Invalidate the geometry contents of a specific tile. Invoking this method will result in new requests to getFeatures for visible tiles.
Link copied to clipboard
Set or update geometry contents of a specific tile. Use this method to update tiles for which getFeatures was previously invoked.