diff options
Diffstat (limited to 'platform/ios/Integration Tests/MGLMapViewIntegrationTest.m')
-rw-r--r-- | platform/ios/Integration Tests/MGLMapViewIntegrationTest.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m b/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m index 0138a255ec..77e678d3ef 100644 --- a/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m +++ b/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m @@ -108,6 +108,20 @@ return CGPointZero; } +- (BOOL)mapView:(MGLMapView *)mapView annotationCanShowCallout:(id<MGLAnnotation>)annotation { + if (self.mapViewAnnotationCanShowCalloutForAnnotation) { + return self.mapViewAnnotationCanShowCalloutForAnnotation(mapView, annotation); + } + return NO; +} + +- (id<MGLCalloutView>)mapView:(MGLMapView *)mapView calloutViewForAnnotation:(id<MGLAnnotation>)annotation { + if (self.mapViewCalloutViewForAnnotation) { + return self.mapViewCalloutViewForAnnotation(mapView, annotation); + } + return nil; +} + #pragma mark - Utilities - (void)waitForMapViewToFinishLoadingStyleWithTimeout:(NSTimeInterval)timeout { |