diff options
Diffstat (limited to 'src/mbgl/map/map.cpp')
-rw-r--r-- | src/mbgl/map/map.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 0d2aa421f6..e45d4b85f2 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -275,13 +275,13 @@ LatLngBounds Map::latLngBoundsForCamera(const CameraOptions& camera) const { #pragma mark - Bounds -optional<LatLngBounds> Map::getLatLngBounds() const { +LatLngBounds Map::getLatLngBounds() const { return impl->transform.getState().getLatLngBounds(); } -void Map::setLatLngBounds(optional<LatLngBounds> bounds) { +void Map::setLatLngBounds(LatLngBounds bounds) { impl->cameraMutated = true; - impl->transform.setLatLngBounds(bounds); + impl->transform.setLatLngBounds(std::move(bounds)); impl->onUpdate(); } |