Skip to content

Instantly share code, notes, and snippets.

@astojilj
Last active May 15, 2019 10:07
Show Gist options
  • Select an option

  • Save astojilj/c045d54bd47fed834be1919eacbea3f8 to your computer and use it in GitHub Desktop.

Select an option

Save astojilj/c045d54bd47fed834be1919eacbea3f8 to your computer and use it in GitHub Desktop.
14362.patch
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