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: MaplibreNativeFfiLatLng

Center.

center_altitude: gdouble

The altitude of the center, in meters above sea level.

padding: MaplibreNativeFfiEdgeInsets

Insets from the map’s edges. The camera centers within the rest.

zoom: gdouble

Zoom.

bearing: gdouble

The rotation from north, in degrees.

pitch: gdouble

The tilt toward the horizon, in degrees. 0 looks straight down.

roll: gdouble

The roll, in degrees.

field_of_view: gdouble

The 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_copy

Copies the value.

maplibre_native_ffi_camera_to_options

Converts this MaplibreNativeFfiCamera to MaplibreNativeFfiCameraOptions that set each of its members.