summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Watson <tewatson89@gmail.com>2019-03-19 15:39:38 -0700
committerGitHub <noreply@github.com>2019-03-19 15:39:38 -0700
commitba2b7a74c420856401d344ff15b27771175c9819 (patch)
tree71f5c6ac91991edbf3220310251e8c5002841e3d
parent56954e06c39da6ddeae55701f10941d6e22977ff (diff)
downloadqtlocation-mapboxgl-ba2b7a74c420856401d344ff15b27771175c9819.tar.gz
Use contentInset for visibleCoordinateBounds for 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 320abf740c..911d254889 100644
--- a/platform/macos/src/MGLMapView.mm
+++ b/platform/macos/src/MGLMapView.mm
@@ -1283,7 +1283,7 @@ public:
}
- (MGLCoordinateBounds)visibleCoordinateBounds {
- return [self convertRect:self.bounds toCoordinateBoundsFromView:self];
+ return [self convertRect:UIEdgeInsetsInsetRect(self.bounds, self.contentInset) toCoordinateBoundsFromView:self];
}
- (void)setVisibleCoordinateBounds:(MGLCoordinateBounds)bounds {