Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Update to new completionful methods in maps 5.2.0 #328

Merged
merged 1 commit into from
Jul 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Examples/ObjectiveC/CustomCalloutViewExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ - (void)viewDidLoad {
[mapView addAnnotation:marker];

// Select the annotation so the callout will appear.
[mapView selectAnnotation:marker animated:NO];
[mapView selectAnnotation:marker animated:NO completionHandler:nil];
}

- (BOOL)mapView:(MGLMapView *)mapView annotationCanShowCallout:(id <MGLAnnotation>)annotation {
Expand Down
2 changes: 1 addition & 1 deletion Examples/ObjectiveC/DefaultCalloutExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ - (void)addAnnotation
[self.mapView setCenterCoordinate:annotation.coordinate zoomLevel:17 animated:NO];

// Pop-up the callout view.
[self.mapView selectAnnotation:annotation animated:YES];
[self.mapView selectAnnotation:annotation animated:YES completionHandler:nil];
}

- (BOOL)mapView:(MGLMapView *)mapView annotationCanShowCallout:(id<MGLAnnotation>)annotation
Expand Down
2 changes: 1 addition & 1 deletion Examples/ObjectiveC/WebAPIDataExample.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ - (void)showCallout:(MGLPointFeature *)feature {

// Selecting an feature that doesn’t already exist on the map will add a new annotation view.
// We’ll need to use the map’s delegate methods to add an empty annotation view and remove it when we’re done selecting it.
[self.mapView selectAnnotation:point animated:YES];
[self.mapView selectAnnotation:point animated:YES completionHandler:nil];
}

#pragma mark - MGLMapViewDelegate
Expand Down
2 changes: 1 addition & 1 deletion Examples/Swift/CustomCalloutViewExample.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CustomCalloutViewExample_Swift: UIViewController, MGLMapViewDelegate {
mapView.addAnnotation(marker)

// Select the annotation so the callout will appear.
mapView.selectAnnotation(marker, animated: false)
mapView.selectAnnotation(marker, animated: false, completionHandler: nil)
}

func mapView(_ mapView: MGLMapView, annotationCanShowCallout annotation: MGLAnnotation) -> Bool {
Expand Down
2 changes: 1 addition & 1 deletion Examples/Swift/DefaultCalloutExample.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DefaultCalloutExample_Swift: UIViewController, MGLMapViewDelegate {
mapView.setCenter(annotation.coordinate, zoomLevel: 17, animated: false)

// Pop-up the callout view.
mapView.selectAnnotation(annotation, animated: true)
mapView.selectAnnotation(annotation, animated: true, completionHandler: nil)
}

func mapView(_ mapView: MGLMapView, annotationCanShowCallout annotation: MGLAnnotation) -> Bool {
Expand Down
2 changes: 1 addition & 1 deletion Examples/Swift/WebAPIDataExample.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class WebAPIDataExample_Swift: UIViewController, MGLMapViewDelegate {

// Selecting an feature that doesn’t already exist on the map will add a new annotation view.
// We’ll need to use the map’s delegate methods to add an empty annotation view and remove it when we’re done selecting it.
mapView.selectAnnotation(point, animated: true)
mapView.selectAnnotation(point, animated: true, completionHandler: nil)
}

// MARK: - MGLMapViewDelegate
Expand Down