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§
- Feature
State Id - Stable feature-state identifier.
- GeoBBox
- Axis-aligned bounding box in Web Mercator world-space, used by box/rectangle rendered-feature queries.
- Queried
Feature - A feature returned by source or rendered query APIs.
- Query
Options - 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§
- Feature
State - Mutable per-feature state payload.