Skip to main content

Module query

Module query 

Source
Expand description

Interaction and query API primitives.

This module provides a small engine-owned query surface for source-feature lookup, rendered-feature picking, and feature-state storage keyed by style sources / feature ids.

Structs§

FeatureStateId
Stable feature-state identifier.
GeoBBox
Axis-aligned bounding box in Web Mercator world-space, used by box/rectangle rendered-feature queries.
QueriedFeature
A feature returned by source or rendered query APIs.
QueryOptions
Query filtering options.

Functions§

feature_id_for_feature
Derive a stable feature id from properties or source-local index.
geometry_hit_distance
Geometric hit-testing against a feature geometry.
geometry_intersects_bbox
Test whether a feature geometry intersects a geographic bounding box.

Type Aliases§

FeatureState
Mutable per-feature state payload.