ConstrainMode class final

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

See mln_constrain_mode in the C API reference.

Constructors

ConstrainMode.fromRawValue(int rawValue)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
rawValue → int
The value's C representation, which may be one this binding predates.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

heightOnly → const ConstrainMode
Keeps the world filling the view from top to bottom.
none → const ConstrainMode
screen → const ConstrainMode
Keeps the whole view inside the bounds from MapHandle.setBounds().
widthAndHeight → const ConstrainMode
Keeps the world filling the view in both directions.