query Rendered Feature
fun <FS : FeatureState> queryRenderedFeature(geometry: RenderedQueryGeometry, featuresetHolder: FeaturesetHolder<FS>, filter: Value? = null, callback: QueryRenderedFeatureCallback<FS>): Cancelable
Queries the map for given featuresetHolder and returns typed InteractiveFeature in the callback.
Return
A cancelable
object that could be used to cancel the pending query.
Parameters
geometry
The screen pixel coordinates
(point, line string or box) to query for rendered features.
featureset Holder
FeaturesetHolder object representing either a featureset or a single layer.
filter
optional global filter.
callback
The QueryRenderedFeatureCallback called when the query operation completes.