[core] Added Map::pitchBy()

This commit is contained in:
Bruno de Oliveira Abinader
2019-02-27 19:58:20 +02:00
parent 02f2b9c75c
commit 491fce6879
6 changed files with 17 additions and 2 deletions

View File

@@ -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 {