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

#include <map.h>

Data Fields

uint32_t size
mln_camera_delta_fields fields
mln_screen_point offset
double scale
double bearing
double pitch
mln_screen_point anchor
mln_gesture_momentum momentum
mln_animation_options animation
mln_gesture_phase gesture_phase
uint32_t reserved

Detailed Description

A change to the camera from where it is now, for gestures.

Field Documentation

◆ anchor

mln_screen_point mln_camera_delta::anchor

The screen point that scale, bearing, and pitch keep in place. It needs one of them, and it combines with offset only in a delta without a duration.

◆ animation

mln_animation_options mln_camera_delta::animation

◆ bearing

double mln_camera_delta::bearing

Degrees to add to the bearing.

◆ fields

mln_camera_delta_fields mln_camera_delta::fields

◆ gesture_phase

mln_gesture_phase mln_camera_delta::gesture_phase

◆ momentum

mln_gesture_momentum mln_camera_delta::momentum

How the gesture keeps moving after this delta. Only a delta in the MLN_GESTURE_PHASE_END phase carries it.

◆ offset

mln_screen_point mln_camera_delta::offset

Moves the map's content this far on the screen, as a drag does.

◆ pitch

double mln_camera_delta::pitch

Degrees to add to the pitch.

◆ reserved

uint32_t mln_camera_delta::reserved

◆ scale

double mln_camera_delta::scale

Multiplies the map's scale. 2 zooms in by one level.

◆ size

uint32_t mln_camera_delta::size

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