---
title: "QuerySourceFeatureOptions | 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 QuerySourceFeatureOptions

The options object related to the [Map.querySourceFeatures](https://docs.maptiler.com/sdk-js/api-reference/classes/Map/#querysourcefeatures) method

type QuerySourceFeatureOptions \= {  
    [filter](#filter)?: [FilterSpecification](https://docs.maptiler.com/sdk-js/api-reference/types/FilterSpecification/);  
    [sourceLayer](#sourcelayer)?: string;  
    [validate](#validate)?: boolean;  
}

##### Index

### Properties[](#properties)

[filter?](#filter) [sourceLayer?](#sourcelayer) [validate?](#validate)

## Properties[](#properties-1)

### `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`sourceLayer[](#sourcelayer)

sourceLayer?: string

The name of the source layer to query. _For vector tile sources, this parameter is required._ For GeoJSON sources, it is ignored.

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

validate?: boolean

Whether to check if the \[parameters.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.

#### Default Value[](#default-value)

```typescript
true
```
