Skip to content

QuerySourceFeatureOptions

QuerySourceFeatureOptions = object

Defined in: src/source/query_features.ts:48

The options object related to the Map#querySourceFeatures method

Properties

filter?

optional filter: FilterSpecification

Defined in: src/source/query_features.ts:57

A filter to limit query results.


sourceLayer?

optional sourceLayer: string

Defined in: src/source/query_features.ts:52

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


validate?

optional validate: boolean

Defined in: src/source/query_features.ts:62

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

true