Skip to main content

Module query

Module query 

Source

Structs§

FeatureIndex
A tile’s features by their bounding boxes, and the tile data they are in.
IndexedSubfeature
A feature of a feature index or a collision index, which a query looks up in its tile’s data.
RenderedQueryOptions
Options for query rendered features.
SourceQueryOptions
Options for query source features

Enums§

FeatureExtensionValue
The result of Renderer::query_feature_extensions: a value or a feature collection.

Functions§

translate_query_geometry
query_geometry, a query’s geometry in tile units, moved back by a layer’s translate (in pixels, at pixels_to_tile_units), turned by -bearing for a translation anchored to the viewport: what a layer that translates its features tests them against. None without a translation.

Type Aliases§

FeatureSortOrder
A shared order of feature indices that queries sort a bucket’s features by, for a bucket whose features sort by their position; None for the order they were indexed in.