queryRenderedFeatures

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

Queries the map for rendered features.

Parameters

callback

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

options

The `render query options` for querying rendered features.

shape

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

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

Queries the map for rendered features.

Parameters

box

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

callback

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

options

The `render query options` for querying rendered features.

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

Queries the map for rendered features.

Parameters

callback

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

options

The `render query options` for querying rendered features.

pixel

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

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

Queries the map for rendered features.

Return

`cancelable` object that could be used to cancel the pending query.

Parameters

callback

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

geometry

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

options

The `render query options` for querying rendered features.