Map Feature Query Delegate
interface MapFeatureQueryDelegate
Content copied to clipboard
Definition of the feature query delegate. Provide interface to query map's features.
Functions
execute On Render Thread
Link copied to clipboard
In some cases querying source / render features is expected to be a blocking operation e.g. performing this action on map click. In this case in order to avoid deadlock on main thread querying could be performed on render thread and in that case querying result will be also delivered on render thread not leading to the main thread deadlock. Example:
query Rendered Features
Link copied to clipboard
abstract fun queryRenderedFeatures(geometry: RenderedQueryGeometry, options: RenderedQueryOptions, callback: QueryFeaturesCallback): Cancelable
Content copied to clipboard
Content copied to clipboard
Content copied to clipboard
Content copied to clipboard
Queries the map for rendered features.
query Source Features
Link copied to clipboard
abstract fun querySourceFeatures(sourceId: String, options: SourceQueryOptions, callback: QueryFeaturesCallback)
Content copied to clipboard
Queries the map for source features.
Inheritors
MapboxMap
Link copied to clipboard