ComputedSource

actual constructor(id: String, options: ComputedSourceOptions, getFeatures: (bounds: BoundingBox, zoomLevel: Int) -> FeatureCollection)(source)
expect constructor(id: String, options: ComputedSourceOptions = ComputedSourceOptions(), getFeatures: (bounds: BoundingBox, zoomLevel: Int) -> FeatureCollection)(source)

Parameters

id

Unique identifier for this source

getFeatures

A function that retrieves a FeatureCollection for the given BoundingBox and zoom level.

actual constructor(id: String, options: ComputedSourceOptions, getFeatures: (bounds: BoundingBox, zoomLevel: Int) -> FeatureCollection)(source)
actual constructor(id: String, options: ComputedSourceOptions, getFeatures: (bounds: BoundingBox, zoomLevel: Int) -> FeatureCollection)(source)
actual constructor(id: String, options: ComputedSourceOptions, getFeatures: (bounds: BoundingBox, zoomLevel: Int) -> FeatureCollection)(source)