Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /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 method

type QuerySourceFeatureOptions = {
    filter?: FilterSpecification;
    sourceLayer?: string;
    validate?: boolean;
}
Index

A filter to limit query results.

sourceLayer?: string

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

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.

true
Was this helpful?