queryRenderedFeatures

open fun queryRenderedFeatures(@NonNull coordinates: PointF, @Nullable layerIds: Array<String>): List<Feature>

Queries the map for rendered features.

Returns an empty list if either the map or underlying render surface has been destroyed.

Return

the list of feature

Parameters

coordinates

the point to query

layerIds

optionally - only query these layers


open fun queryRenderedFeatures(@NonNull coordinates: PointF, @Nullable filter: Expression, @Nullable layerIds: Array<String>): List<Feature>

Queries the map for rendered features

Returns an empty list if either the map or underlying render surface has been destroyed.

Return

the list of feature

Parameters

coordinates

the point to query

filter

filters the returned features with an expression

layerIds

optionally - only query these layers


open fun queryRenderedFeatures(@NonNull coordinates: RectF, @Nullable layerIds: Array<String>): List<Feature>

Queries the map for rendered features

Returns an empty list if either the map or underlying render surface has been destroyed.

Return

the list of feature

Parameters

coordinates

the box to query

layerIds

optionally - only query these layers


open fun queryRenderedFeatures(@NonNull coordinates: RectF, @Nullable filter: Expression, @Nullable layerIds: Array<String>): List<Feature>

Queries the map for rendered features

Returns an empty list if either the map or underlying render surface has been destroyed.

Return

the list of feature

Parameters

coordinates

the box to query

filter

filters the returned features with an expression

layerIds

optionally - only query these layers