[core] make padding optional when camera position is requested.

When padding is not provided, the current one that's cached in the TransformState is going to be returned.
This commit is contained in:
Łukasz Paczos
2019-08-21 18:15:38 +02:00
committed by Łukasz Paczos
parent 6a4e431dbe
commit e5c219d035
6 changed files with 7 additions and 7 deletions

View File

@@ -124,7 +124,7 @@ bool Map::isPanning() const {
#pragma mark -
CameraOptions Map::getCameraOptions(const EdgeInsets& padding) const {
CameraOptions Map::getCameraOptions(optional<EdgeInsets> padding) const {
return impl->transform.getCameraOptions(padding);
}