MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_anchored_momentum Struct Reference

#include <map.h>

Data Fields

mln_anchored_momentum_fields fields
double velocity
mln_screen_point anchor
mln_momentum_decay decay
mln_momentum_snap snap

Detailed Description

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

Field Documentation

◆ anchor

mln_screen_point mln_anchored_momentum::anchor

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

◆ decay

mln_momentum_decay mln_anchored_momentum::decay

◆ fields

mln_anchored_momentum_fields mln_anchored_momentum::fields

◆ snap

mln_momentum_snap mln_anchored_momentum::snap

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

◆ velocity

double mln_anchored_momentum::velocity

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.


The documentation for this struct was generated from the following file: