summaryrefslogtreecommitdiff
path: root/platform/macos
diff options
context:
space:
mode:
authorSudarsana Babu Nagineni <sudarsana.babu@mapbox.com>2019-03-25 23:24:02 +0200
committerSudarsana Babu Nagineni <sudarsana.babu@mapbox.com>2019-03-28 16:41:15 +0200
commite639087c9103b25bd0ea7594ab4280c227243f88 (patch)
treeaf4d0df8a85d3695a8d2c5ca4efab9f7aef7cd10 /platform/macos
parentfe8c07710f4444921a560029210ea1831a9ac52e (diff)
downloadqtlocation-mapboxgl-e639087c9103b25bd0ea7594ab4280c227243f88.tar.gz
[core] Add getter for Map options
Instead of having individual getter for each Map option, add a common getter for all Map options.
Diffstat (limited to 'platform/macos')
-rw-r--r--platform/macos/src/MGLMapView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm
index c8e3d07908..c5d3279c81 100644
--- a/platform/macos/src/MGLMapView.mm
+++ b/platform/macos/src/MGLMapView.mm
@@ -695,7 +695,7 @@ public:
self.dormant = NO;
}
- if (window && _mbglMap->getConstrainMode() == mbgl::ConstrainMode::None) {
+ if (window && _mbglMap->getMapOptions().constrainMode() == mbgl::ConstrainMode::None) {
_mbglMap->setConstrainMode(mbgl::ConstrainMode::HeightOnly);
}