diff options
Diffstat (limited to 'src/mbgl/map/map.cpp')
-rw-r--r-- | src/mbgl/map/map.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 25c4b5398d..ab4ccb2007 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -317,6 +317,12 @@ void Map::resetZoom() { setZoom(0); } +#pragma mark - Pitch + +void Map::pitchBy(double pitch, const AnimationOptions& animation) { + easeTo(CameraOptions().withPitch((impl->transform.getPitch() * util::RAD2DEG) - pitch), animation); +} + #pragma mark - Bounds optional<LatLngBounds> Map::getLatLngBounds() const { |