queryRenderedFeature

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.

featuresetHolder

FeaturesetHolder object representing either a featureset or a single layer.

filter

optional global filter.

callback

The QueryRenderedFeatureCallback called when the query operation completes.