QueryRenderedFeatures

API Reference (beta) for <QueryRenderedFeatures />

Property Type Description
map
optional
Map
-
geometry
optional
[number, number] | Point | [[number, number] | Point, [number, number] | Point]
-
features
optional bindable
MapGeoJSONFeature[]
-
children
optional
Snippet<[MapGeoJSONFeature]>
-
layers
optional
string[] | Set<string>
An array or set of [style layer IDs](https://maplibre.org/maplibre-style-spec/#layer-id) for the query to inspect. Only features within these layers will be returned. If this parameter is undefined, all layers will be checked.
filter
optional
FilterSpecification
A [filter](https://maplibre.org/maplibre-style-spec/layers/#filter) to limit query results.
availableImages
optional
string[]
An array of string representing the available images
validate
optional
boolean
Whether to check if the [options.filter] conforms to the MapLibre Style Specification. Disabling validation is a performance optimization that should only be used if you have previously validated the values you will be passing to this function.