summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.mm
diff options
context:
space:
mode:
authorFabian Guerra <fabian.guerra@mapbox.com>2017-10-31 16:53:38 -0400
committerFabian Guerra <fabian.guerra@mapbox.com>2017-10-31 22:19:56 -0400
commit07134346f80c73982ff3968cb1b1f94051203dff (patch)
tree6072af838385e97dd9011f289072882d5a7b8322 /platform/ios/src/MGLMapView.mm
parent87c8150e6d64441bc3e4b72279933a9c9687d61c (diff)
downloadqtlocation-mapboxgl-07134346f80c73982ff3968cb1b1f94051203dff.tar.gz
[ios, macos] Update changelogs.upstream/fabian-center-callout-10229
Diffstat (limited to 'platform/ios/src/MGLMapView.mm')
-rw-r--r--platform/ios/src/MGLMapView.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 764b6a9fbf..ed51754b0a 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -1616,7 +1616,7 @@ public:
if(annotation)
{
CGPoint calloutPoint = [singleTap locationInView:self];
- CGRect positionRect = [self positioningRectForAnnotation:annotation withDefaultCalloutPoint:calloutPoint];
+ CGRect positionRect = [self positioningRectForAnnotation:annotation defaultCalloutPoint:calloutPoint];
[self selectAnnotation:annotation animated:YES calloutPositioningRect:positionRect];
}
else
@@ -3982,7 +3982,7 @@ public:
- (void)selectAnnotation:(id <MGLAnnotation>)annotation animated:(BOOL)animated
{
- CGRect positioningRect = [self positioningRectForAnnotation:annotation withDefaultCalloutPoint:CGPointZero];
+ CGRect positioningRect = [self positioningRectForAnnotation:annotation defaultCalloutPoint:CGPointZero];
[self selectAnnotation:annotation animated:animated calloutPositioningRect:positioningRect];
}
@@ -4116,7 +4116,7 @@ public:
/// and is appropriate for positioning a popover.
/// If a shape annotation is visible but its centroid is not, and a default point is specified,
/// the callout view is anchored to the default callout point.
-- (CGRect)positioningRectForAnnotation:(id <MGLAnnotation>)annotation withDefaultCalloutPoint:(CGPoint)calloutPoint
+- (CGRect)positioningRectForAnnotation:(id <MGLAnnotation>)annotation defaultCalloutPoint:(CGPoint)calloutPoint
{
MGLAnnotationTag annotationTag = [self annotationTagForAnnotation:annotation];
CGRect positioningRect = [self positioningRectForCalloutForAnnotationWithTag:annotationTag];