---
title: "QueryRenderedFeaturesOptions | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias QueryRenderedFeaturesOptions

Options to pass to query the map for the rendered features

type QueryRenderedFeaturesOptions \= {  
    [availableImages](#availableimages)?: string\[\];  
    [filter](#filter)?: [FilterSpecification](https://docs.maptiler.com/sdk-js/api-reference/types/FilterSpecification/);  
    [layers](#layers)?: string\[\] | Set<string\>;  
    [validate](#validate)?: boolean;  
}

##### Index

### Properties[](#properties)

[availableImages?](#availableimages) [filter?](#filter) [layers?](#layers) [validate?](#validate)

## Properties[](#properties-1)

### `Optional`availableImages[](#availableimages)

availableImages?: string\[\]

An array of string representing the available images

### `Optional`filter[](#filter)

filter?: [FilterSpecification](https://docs.maptiler.com/sdk-js/api-reference/types/FilterSpecification/)

A [filter](https://maplibre.org/maplibre-style-spec/layers/#filter) to limit query results.

### `Optional`layers[](#layers)

layers?: 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.

### `Optional`validate[](#validate)

validate?: 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.
