summaryrefslogtreecommitdiff
path: root/src/mbgl/map/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/map/map.cpp')
-rw-r--r--src/mbgl/map/map.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index f42c11bdbb..261d2f149f 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -666,6 +666,15 @@ void Map::resetZoom() {
#pragma mark - Bounds
+LatLngBounds Map::getLatLngBounds() const {
+ return impl->transform.getState().getLatLngBounds();
+}
+
+void Map::setLatLngBounds(const LatLngBounds& bounds) {
+ impl->cameraMutated = true;
+ impl->transform.setLatLngBounds(bounds);
+ impl->onUpdate(Update::Repaint);
+}
void Map::setMinZoom(const double minZoom) {
impl->transform.setMinZoom(minZoom);