queryRenderedFeatures

open override fun queryRenderedFeatures(shape: List<ScreenCoordinate?>, options: RenderedQueryOptions, callback: QueryFeaturesCallback)

Queries the map for rendered features.

Return

An array of rendered features.

Parameters

callback

Callback called when the query completes

options

Options for querying rendered features.

shape

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

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

Queries the map for rendered features.

Return

An array of rendered features.

Parameters

box

Screen box to query for rendered features.

callback

Callback called when the query completes

options

Options for querying rendered features.

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

Queries the map for rendered features.

Return

An array of rendered features.

Parameters

callback

Callback called when the query completes

options

Options for querying rendered features.

pixel

Screen pixel coordinate to query for rendered features.

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

Queries the map for rendered features.

Return

A 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.