queryRenderedFeatures

abstract fun queryRenderedFeatures(@NonNull shape: List<ScreenCoordinate>, @NonNull options: RenderedQueryOptions, @NonNull callback: QueryFeaturesCallback)

Queries the map for rendered features.

Parameters

shape

The `screen pixel coordinates` (point, line string or box) to query for rendered features.

options

The `render query options` for querying rendered features.

callback

The `query features callback` called when the query completes.

abstract fun queryRenderedFeatures(@NonNull box: ScreenBox, @NonNull options: RenderedQueryOptions, @NonNull callback: QueryFeaturesCallback)

Queries the map for rendered features.

Parameters

box

The `screen box` in `platform pixel` to query for rendered features.

options

The `render query options` for querying rendered features.

callback

The `query features callback` called when the query completes.

abstract fun queryRenderedFeatures(@NonNull pixel: ScreenCoordinate, @NonNull options: RenderedQueryOptions, @NonNull callback: QueryFeaturesCallback)

Queries the map for rendered features.

Parameters

pixel

The `screen coordinate` in `platform pixel` to query for rendered features.

options

The `render query options` for querying rendered features.

callback

The `query features callback` called when the query completes.

abstract fun queryRenderedFeatures(@NonNull geometry: RenderedQueryGeometry, @NonNull options: RenderedQueryOptions, @NonNull callback: QueryFeaturesCallback): Cancelable

Queries the map for rendered features.

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.

options

The `render query options` for querying rendered features.

callback

The `query features callback` called when the query completes.