Rendered Feature Querying
interface RenderedFeatureQuerying
A capability for querying rendered features from one or more visible layers.
Conformers (e.g., a MapboxMapController) translate the engine-agnostic QueryGeometry into the underlying SDK's query API and map the results into QueriedFeature values that this module understands. This keeps callers decoupled from any specific map engine.
Implementations should be thread-safe and may execute work off the main thread. Results are filtered to the provided layerIds when not null.
Functions
Link copied to clipboard
abstract suspend fun queryFeatures(inGeometry: QueryGeometry, layerIds: List<String>? = null): List<QueriedFeature>
Queries rendered features intersecting the given geometry.