summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Quidet <romain.quidet.ext@mappy.com>2016-02-22 17:37:47 +0100
committerJesse Bounds <jesse@rebounds.net>2016-08-30 16:37:45 -0700
commit4d74e73e5e04f1907f84e885102f86d77d89759d (patch)
tree0f263b33cc57c480f09258d5ecda100d575d2ba8
parentc075386a984cd5de21f6201341d360a5c1039b67 (diff)
downloadqtlocation-mapboxgl-4d74e73e5e04f1907f84e885102f86d77d89759d.tar.gz
[iOS] Using contentInset for setCenterCoordinate: and flyToCamera methods everywhere.
-rw-r--r--platform/ios/src/MGLMapView.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 8a5b59711f..bf46634ee7 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -4085,7 +4085,7 @@ public:
- (void)didUpdateLocationIncrementallyAnimated:(BOOL)animated
{
[self _setCenterCoordinate:self.userLocation.location.coordinate
- edgePadding:self.edgePaddingForFollowing
+ edgePadding:self.contentInset
zoomLevel:self.zoomLevel
direction:self.directionByFollowingWithCourse
duration:animated ? MGLUserLocationAnimationDuration : 0
@@ -4112,7 +4112,7 @@ public:
__weak MGLMapView *weakSelf = self;
[self _flyToCamera:camera
- edgePadding:self.edgePaddingForFollowing
+ edgePadding:self.contentInset
withDuration:animated ? -1 : 0
peakAltitude:-1
completionHandler:^{