diff options
author | Juha Alanen <juha.alanen@mapbox.com> | 2020-02-26 10:11:13 +0200 |
---|---|---|
committer | Juha Alanen <juha.alanen@mapbox.com> | 2020-02-26 11:21:04 +0200 |
commit | f3c8cefc7f71de9077a7a0027c3653cf7488a0cc (patch) | |
tree | 28d42650a46922d1d4133de337cdf7b9416ca8d6 /src/mbgl | |
parent | 384681a936151eb575546e68915af6845af5441f (diff) | |
download | qtlocation-mapboxgl-f3c8cefc7f71de9077a7a0027c3653cf7488a0cc.tar.gz |
[core] Return pitch bounds in degrees
Diffstat (limited to 'src/mbgl')
-rw-r--r-- | src/mbgl/map/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 994cefa868..0d9574a299 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -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 |