summaryrefslogtreecommitdiff
path: root/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@gmail.com>2018-07-09 10:01:11 -0400
committerGitHub <noreply@github.com>2018-07-09 10:01:11 -0400
commit3710ef8810bdab2d2e7f261c3b5c5e4053a279c9 (patch)
tree80ba7c242ccef3314e6e0887ac19f339ed53657f /platform/ios/Integration Tests/MGLMapViewIntegrationTest.m
parente08ee7338aa25752aedc50014c8c6ff2e096ba1a (diff)
downloadqtlocation-mapboxgl-3710ef8810bdab2d2e7f261c3b5c5e4053a279c9.tar.gz
[iOS] Update annotation view touch handling (with offsets) (#12234)
Diffstat (limited to 'platform/ios/Integration Tests/MGLMapViewIntegrationTest.m')
-rw-r--r--platform/ios/Integration Tests/MGLMapViewIntegrationTest.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m b/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m
index 8fb41d0d11..f67150ba9b 100644
--- a/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m
+++ b/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m
@@ -37,6 +37,14 @@
#pragma mark - MGLMapViewDelegate
+- (MGLAnnotationView*)mapView:(MGLMapView *)mapView viewForAnnotation:(id<MGLAnnotation>)annotation {
+ if (self.viewForAnnotation) {
+ return self.viewForAnnotation(mapView, annotation);
+ }
+
+ return nil;
+}
+
- (void)mapView:(MGLMapView *)mapView didFinishLoadingStyle:(MGLStyle *)style {
XCTAssertNotNil(mapView.style);
XCTAssertEqual(mapView.style, style);