[core] Return pitch bounds in degrees
This commit is contained in:
@@ -36,10 +36,10 @@ struct BoundOptions {
|
||||
/// Minimum zoom level allowed.
|
||||
optional<double> minZoom;
|
||||
|
||||
/// Maximum pitch allowed.
|
||||
/// Maximum pitch allowed in degrees.
|
||||
optional<double> maxPitch;
|
||||
|
||||
/// Minimum pitch allowed.
|
||||
/// Minimum pitch allowed in degrees.
|
||||
optional<double> minPitch;
|
||||
};
|
||||
|
||||
|
||||
@@ -332,8 +332,8 @@ BoundOptions Map::getBounds() const {
|
||||
.withLatLngBounds(impl->transform.getState().getLatLngBounds())
|
||||
.withMinZoom(impl->transform.getState().getMinZoom())
|
||||
.withMaxZoom(impl->transform.getState().getMaxZoom())
|
||||
.withMinPitch(impl->transform.getState().getMinPitch())
|
||||
.withMaxPitch(impl->transform.getState().getMaxPitch());
|
||||
.withMinPitch(impl->transform.getState().getMinPitch() * util::RAD2DEG)
|
||||
.withMaxPitch(impl->transform.getState().getMaxPitch() * util::RAD2DEG);
|
||||
}
|
||||
|
||||
#pragma mark - Map options
|
||||
|
||||
Reference in New Issue
Block a user