diff options
author | Ander Conselvan de Oliveira <ander.deoliveira@mapbox.com> | 2019-03-07 15:43:06 +0200 |
---|---|---|
committer | Ander Conselvan de Oliveira <ander.deoliveira@mapbox.com> | 2019-03-14 18:33:11 +0200 |
commit | a73cc9d8e363b0b3f4fa66c5d9c34625dffbb7e5 (patch) | |
tree | ad0b4cd4349a17a8f4c3bc6ec9f5bbbf0c25f1dd /src/mbgl/map/map.cpp | |
parent | dba40c64ea8175b5dbf1cd043b3bc40730e13956 (diff) | |
download | qtlocation-mapboxgl-a73cc9d8e363b0b3f4fa66c5d9c34625dffbb7e5.tar.gz |
[core] Remove support for setting minimum and maximum pitch
Support for limiting pitch was introduced in commit c4fc89977bcb ([core]
Added {set,get}{Min,Max}Pitch) in 2017 but was never exposed by the
platform SDKs. Simplify the Map interface by removing this unused
feature.
v2: Add util::PITCH_MIN
Diffstat (limited to 'src/mbgl/map/map.cpp')
-rw-r--r-- | src/mbgl/map/map.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 556038d2d8..0d2aa421f6 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -307,28 +307,6 @@ double Map::getMaxZoom() const { return impl->transform.getState().getMaxZoom(); } -void Map::setMinPitch(double minPitch) { - impl->transform.setMinPitch(minPitch * util::DEG2RAD); - if (impl->transform.getPitch() < minPitch) { - jumpTo(CameraOptions().withPitch(minPitch)); - } -} - -double Map::getMinPitch() const { - return impl->transform.getState().getMinPitch() * util::RAD2DEG; -} - -void Map::setMaxPitch(double maxPitch) { - impl->transform.setMaxPitch(maxPitch * util::DEG2RAD); - if (impl->transform.getPitch() > maxPitch) { - jumpTo(CameraOptions().withPitch(maxPitch)); - } -} - -double Map::getMaxPitch() const { - return impl->transform.getState().getMaxPitch() * util::RAD2DEG; -} - #pragma mark - Size void Map::setSize(const Size size) { |