summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2017-11-08 15:49:51 -0800
committerjmkiley <jordan.kiley@mapbox.com>2017-11-08 15:49:51 -0800
commitc111f4cc3017ac26cd42287afff9692b1fe1f129 (patch)
treeac8df0d1bd533b15f7072e440847ca2d45fe8a18
parentb843765a05dad7a3e25e07312f008b5db68b42a6 (diff)
downloadqtlocation-mapboxgl-upstream/jmkiley-smart-invert-warnings.tar.gz
-rw-r--r--platform/ios/src/MGLMapView.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 415f109576..c002da5f18 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -448,7 +448,6 @@ public:
_attributionButton = [UIButton buttonWithType:UIButtonTypeInfoLight];
_attributionButton.accessibilityLabel = NSLocalizedStringWithDefaultValue(@"INFO_A11Y_LABEL", nil, nil, @"About this map", @"Accessibility label");
_attributionButton.accessibilityHint = NSLocalizedStringWithDefaultValue(@"INFO_A11Y_HINT", nil, nil, @"Shows credits, a feedback form, and more", @"Accessibility hint");
-
[_attributionButton addTarget:self action:@selector(showAttribution:) forControlEvents:UIControlEventTouchUpInside];
_attributionButton.translatesAutoresizingMaskIntoConstraints = NO;
[self addSubview:_attributionButton];
@@ -1950,7 +1949,7 @@ public:
- (CLLocationDegrees)angleBetweenPoints:(CGPoint)west east:(CGPoint)east
{
CGFloat slope = (west.y - east.y) / (west.x - east.x);
-
+
CGFloat angle = atan(fabs(slope));
CLLocationDegrees degrees = MGLDegreesFromRadians(angle);