Table of Contents

Enum ConstrainMode

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

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

public enum ConstrainMode : uint

Fields

HeightOnly = 1

Keeps the world filling the view from top to bottom.

None = 0
Screen = 3

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

WidthAndHeight = 2

Keeps the world filling the view in both directions.

Remarks

See mln_constrain_mode in the C API reference.