[core] Return pitch bounds in degrees

This commit is contained in:
Juha Alanen
2020-02-26 10:11:13 +02:00
parent 384681a936
commit f3c8cefc7f
2 changed files with 4 additions and 4 deletions

View File

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