@maplibre/native-ffi
    Preparing search index...

    Interface AnchoredMomentum

    How a gesture's zoom, bearing, or pitch keeps changing after release.

    See mln_anchored_momentum in the C API reference.

    interface AnchoredMomentum {
        anchor?: ScreenPoint;
        decay?: MomentumDecay;
        snap?: MomentumSnap;
        velocity?: number;
    }
    Index
    anchor?: ScreenPoint

    The screen point that the change keeps in place. Without one, the change keeps the center of the view in place.

    Where the part settles. Without this, it stays where the gesture and its glide leave it.

    velocity?: number

    How fast the value changed at release: zoom levels per second for zoom, and degrees per second for bearing and pitch. The part moves only when this is set.