diff options
author | Julian Rex <julian.rex@gmail.com> | 2018-02-12 16:37:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-12 16:37:21 -0500 |
commit | 9ee99c91bbf995302ead77a3f6fa22443f50a910 (patch) | |
tree | 1d23f40e4b327aa26606990cc217126db9bacc0e /platform/ios/app | |
parent | 560afaf1fb8f1cd20cef261da4992cd8a5478f88 (diff) | |
download | qtlocation-mapboxgl-9ee99c91bbf995302ead77a3f6fa22443f50a910.tar.gz |
[ios] Adds camera change delegate methods with reason parameter. (#11151)
Added missing notification handler for UIApplicationWillResignActiveNotification.
Diffstat (limited to 'platform/ios/app')
-rw-r--r-- | platform/ios/app/MBXViewController.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m index 2c3d26b489..1046644f8c 100644 --- a/platform/ios/app/MBXViewController.m +++ b/platform/ios/app/MBXViewController.m @@ -1279,6 +1279,7 @@ typedef NS_ENUM(NSInteger, MBXSettingsMiscellaneousRows) { - (void)styleDynamicPointCollection { [self.mapView setCenterCoordinate:CLLocationCoordinate2DMake(36.9979, -109.0441) zoomLevel:14 animated:NO]; + CLLocationCoordinate2D coordinates[] = { {37.00145594210082, -109.04960632324219}, {37.00173012609867, -109.0404224395752}, @@ -1884,7 +1885,8 @@ typedef NS_ENUM(NSInteger, MBXSettingsMiscellaneousRows) { [self updateHUD]; } -- (void)mapView:(MGLMapView *)mapView regionDidChangeAnimated:(BOOL)animated { +- (void)mapView:(MGLMapView *)mapView regionDidChangeWithReason:(MGLCameraChangeReason)reason animated:(BOOL)animated +{ [self updateHUD]; } |