ComputedSource

actual class ComputedSource : Source(source)
expect class ComputedSource : Source(source)

A map data source of tiled vector data generated with some custom logic

actual class ComputedSource : Source(source)
actual class ComputedSource : Source(source)
actual class ComputedSource : Source(source)

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)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
actual fun invalidateBounds(bounds: BoundingBox)
expect fun invalidateBounds(bounds: BoundingBox)

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.

actual fun invalidateBounds(bounds: BoundingBox)
actual fun invalidateBounds(bounds: BoundingBox)
actual fun invalidateBounds(bounds: BoundingBox)
Link copied to clipboard
actual fun invalidateTile(zoomLevel: Int, x: Int, y: Int)
expect fun invalidateTile(zoomLevel: Int, x: Int, y: Int)

Invalidate the geometry contents of a specific tile. Invoking this method will result in new requests to getFeatures for visible tiles.

actual fun invalidateTile(zoomLevel: Int, x: Int, y: Int)
actual fun invalidateTile(zoomLevel: Int, x: Int, y: Int)
actual fun invalidateTile(zoomLevel: Int, x: Int, y: Int)
Link copied to clipboard
actual fun setData(zoomLevel: Int, x: Int, y: Int, data: FeatureCollection)
expect fun setData(zoomLevel: Int, x: Int, y: Int, data: FeatureCollection)

Set or update geometry contents of a specific tile. Use this method to update tiles for which getFeatures was previously invoked.

actual fun setData(zoomLevel: Int, x: Int, y: Int, data: FeatureCollection)
actual fun setData(zoomLevel: Int, x: Int, y: Int, data: FeatureCollection)
actual fun setData(zoomLevel: Int, x: Int, y: Int, data: FeatureCollection)
toString
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String