Last active
May 15, 2019 10:07
-
-
Save astojilj/c045d54bd47fed834be1919eacbea3f8 to your computer and use it in GitHub Desktop.
14362.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m | |
| index 630fefde2..b6333cc33 100644 | |
| --- a/platform/ios/app/MBXViewController.m | |
| +++ b/platform/ios/app/MBXViewController.m | |
| @@ -509,7 +509,16 @@ - (void)performActionForSettingAtIndexPath:(NSIndexPath *)indexPath | |
| switch (indexPath.row) | |
| { | |
| case MBXSettingsDebugToolsResetPosition: | |
| - [self.mapView resetPosition]; | |
| + // [self.mapView resetPosition]; | |
| + { | |
| + MGLMapCamera *camera = _mapView.camera; | |
| + camera.pitch = fmod(camera.pitch + 45.0, 90.0);; | |
| + [_mapView setCamera:camera | |
| + withDuration:1.0f | |
| + animationTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear] | |
| + edgePadding:UIEdgeInsetsMake(10, 10, 50, 10) | |
| + completionHandler:nil]; | |
| + } | |
| break; | |
| case MBXSettingsDebugToolsTileBoundaries: | |
| self.mapView.debugMask ^= MGLMapDebugTileBoundariesMask; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment