|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <map.h>
Data Fields | |
| mln_anchored_momentum_fields | fields |
| double | velocity |
| mln_screen_point | anchor |
| mln_momentum_decay | decay |
| mln_momentum_snap | snap |
How a gesture's zoom, bearing, or pitch keeps changing after release.
| 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.
| mln_momentum_decay mln_anchored_momentum::decay |
| mln_anchored_momentum_fields mln_anchored_momentum::fields |
| mln_momentum_snap mln_anchored_momentum::snap |
Where the part settles. Without this, it stays where the gesture and its glide leave it.
| 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.