diff options
author | Aleksandar Stojiljkovic <aleksandar.stojiljkovic@mapbox.com> | 2019-05-23 16:46:35 +0300 |
---|---|---|
committer | Aleksandar Stojiljkovic <aleksandar.stojiljkovic@mapbox.com> | 2019-05-28 14:38:01 +0300 |
commit | e5431d01817c0546aa0b971a7b0b33c9bbd87077 (patch) | |
tree | 7c670c67492dcf4bd95afb5546c7f3de714ea10f /platform/ios/app | |
parent | 9809c9f8f5583739e07d1a02df4c6cb96dfc4a10 (diff) | |
download | qtlocation-mapboxgl-e5431d01817c0546aa0b971a7b0b33c9bbd87077.tar.gz |
Asymmetric viewport changelog entry
Check edge insets difference, in addition to isEqualToMapCamera in all the places in MGLMapView before map.easeTo/map.flyTo.
Diffstat (limited to 'platform/ios/app')
-rw-r--r-- | platform/ios/app/MBXViewController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m index 567ca151f7..893cee1cdc 100644 --- a/platform/ios/app/MBXViewController.m +++ b/platform/ios/app/MBXViewController.m @@ -788,14 +788,14 @@ CLLocationCoordinate2D randomWorldCoordinate() { heading:0]; __weak typeof(self) weakSelf = self; [self.mapView setCamera:camera withDuration:0.3 animationTimingFunction:nil completionHandler:^{ - [weakSelf.mapView setContentInset:contentInsets animated:TRUE]; + [weakSelf.mapView setContentInset:contentInsets animated:YES]; }]; } else { [self.view sendSubviewToBack:self.contentInsetsOverlays[0]]; [self.view sendSubviewToBack:self.contentInsetsOverlays[1]]; [self.view sendSubviewToBack:self.contentInsetsOverlays[2]]; [self.view sendSubviewToBack:self.contentInsetsOverlays[3]]; - [self.mapView setContentInset:_originalContentInsets animated:TRUE]; + [self.mapView setContentInset:_originalContentInsets animated:YES]; } break; } |