queryRenderedFeatures

Queries the map for 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.

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

Queries the map for rendered features.

Parameters

box

Screen box to query for rendered features.

callback

Callback called when the query completes

options

Options for querying rendered features.

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

Queries the map for 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.

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