@maplibre/native-ffi
    Preparing search index...

    Variable ConstrainModeConst

    ConstrainMode: { heightOnly: 1; none: 0; screen: 3; widthAndHeight: 2 } = ...

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

    See mln_constrain_mode in the C API reference.

    Type Declaration

    • ReadonlyheightOnly: 1

      Keeps the world filling the view from top to bottom.

    • Readonlynone: 0
    • Readonlyscreen: 3

      Keeps the whole view inside the bounds from MapHandle.setBounds().

    • ReadonlywidthAndHeight: 2

      Keeps the world filling the view in both directions.