Struct
MaplibreNativeFfiCamera
Description [src]
struct MaplibreNativeFfiCamera {
MaplibreNativeFfiLatLng center;
gdouble center_altitude;
MaplibreNativeFfiEdgeInsets padding;
gdouble zoom;
gdouble bearing;
gdouble pitch;
gdouble roll;
gdouble field_of_view;
}
A map’s whole camera.
See mln_camera in the
C API reference.
Structure members
center:MaplibreNativeFfiLatLngCenter.
center_altitude:gdoubleThe altitude of the center, in meters above sea level.
padding:MaplibreNativeFfiEdgeInsetsInsets from the map’s edges. The camera centers within the rest.
zoom:gdoubleZoom.
bearing:gdoubleThe rotation from north, in degrees.
pitch:gdoubleThe tilt toward the horizon, in degrees. 0 looks straight down.
roll:gdoubleThe roll, in degrees.
field_of_view:gdoubleThe vertical field of view, in degrees.
Functions
maplibre_native_ffi_camera_for_tile
Computes the camera that shows exactly one tile on a square map.
Instance methods
maplibre_native_ffi_camera_to_options
Converts this MaplibreNativeFfiCamera to MaplibreNativeFfiCameraOptions
that set each of its members.