public static final class MapNavigator.PitchConstraintOptions extends Object implements AutoCloseable
This constraint only works in 3D.
See MapNavigator#getPitchConstraint
for more information.
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
double |
getMaxPitch()
Returns the maximum for the pitch of the 3D camera.
|
double |
getMinPitch()
Returns the minimum for the pitch of the 3D camera.
|
void |
setMaxPitch(double maxPitch)
Sets the maximum for the pitch of the 3D camera.
|
void |
setMinPitch(double minPitch)
Sets the minimum for the pitch of the 3D camera.
|
public void close()
close
in interface AutoCloseable
public void setMinPitch(double minPitch)
Pitch is defined as the camera's tilt angle. A value of 0 points the camera towards the horizon (i.e. horizontally); -90 points straight down towards the ground (similar to a 2D top-down view) and +90 points straight up.
In other words, this property controls how far the camera can look up.
This camera constraint is only applied on 3D maps
.
The default is -89.9, i.e. looking almost straight down.
minPitch
- the minimum for the pitch of the 3D camera. It is advised not to use a value of 90 or -90. This can lead to the gimbal lock problem, leading to unstable camera movement.public double getMinPitch()
setMinPitch
public void setMaxPitch(double maxPitch)
Pitch is defined as the camera's tilt angle. A value of 0 points the camera towards the horizon (i.e. horizontally); -90 points straight down towards the ground and +90 points straight up.
In other words, this property controls how far the camera can look down.
This camera constraint is only applied on 3D maps
.
The default is +89.9, i.e. looking almost straight up.
maxPitch
- the maximum for the pitch of the 3D camera. It is advised not to use a value of 90 or -90. This can lead to the gimbal lock problem, leading to unstable camera movement.public double getMaxPitch()
setMaxPitch