Enumeration

MaplibreNativeFfiConstrainMode

Declaration

enum MaplibreNativeFfi.ConstrainMode

Description [src]

How the map keeps the camera within the world or within its bounds.

See mln_constrain_mode in the C API reference.

Members

MAPLIBRE_NATIVE_FFI_CONSTRAIN_MODE_NONE

No description available.

  • Value: 0
  • Available since: 0
MAPLIBRE_NATIVE_FFI_CONSTRAIN_MODE_HEIGHT_ONLY

Keeps the world filling the view from top to bottom.

  • Value: 1
  • Available since: 0
MAPLIBRE_NATIVE_FFI_CONSTRAIN_MODE_WIDTH_AND_HEIGHT

Keeps the world filling the view in both directions.

  • Value: 2
  • Available since: 0
MAPLIBRE_NATIVE_FFI_CONSTRAIN_MODE_SCREEN

Keeps the whole view inside the bounds from maplibre_native_ffi_map_set_bounds_async().

  • Value: 3
  • Available since: 0