summaryrefslogtreecommitdiff
path: root/platform/ios/test
diff options
context:
space:
mode:
authorJordan Kiley <jmkiley@users.noreply.github.com>2018-08-20 16:30:03 -0700
committerFabian Guerra Soto <fabian.guerra@mapbox.com>2018-08-20 16:30:03 -0700
commit7fc872b797679ae033a32246206efb06c98a0fd5 (patch)
tree4c0e1f32fdc32ec2d1f94fd1f429765c07389f63 /platform/ios/test
parent50059659d100759978c8bebb04ac7beb9e6d618f (diff)
downloadqtlocation-mapboxgl-7fc872b797679ae033a32246206efb06c98a0fd5.tar.gz
Add enabled property to MGLShape (#12352)
* [ios, macos] Add -[MGLMapViewDelegate mapView:canSelectAnnotation:] method. * [ios, macos] Update changelogs. * [ios, macos] Add mapView:canSelect: integration tests. * [ios, macos] Change semantics to shape annotations. * [ios, macos] Update changelogs. * [ios, macos] Update shapeAnnotationIsEnabled documentation, improve code readability.
Diffstat (limited to 'platform/ios/test')
-rw-r--r--platform/ios/test/MGLMapViewDelegateIntegrationTests.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/ios/test/MGLMapViewDelegateIntegrationTests.swift b/platform/ios/test/MGLMapViewDelegateIntegrationTests.swift
index 4d11b000b9..48673b1d14 100644
--- a/platform/ios/test/MGLMapViewDelegateIntegrationTests.swift
+++ b/platform/ios/test/MGLMapViewDelegateIntegrationTests.swift
@@ -58,6 +58,8 @@ extension MGLMapViewDelegateIntegrationTests: MGLMapViewDelegate {
func mapView(_ mapView: MGLMapView, tapOnCalloutFor annotation: MGLAnnotation) {}
func mapViewDidFinishRenderingFrame(_ mapView: MGLMapView, fullyRendered: Bool) {}
+
+ func mapView(_ mapView: MGLMapView, shapeAnnotationIsEnabled annotation: MGLShape) -> Bool { return false }
func mapView(_ mapView: MGLMapView, didAdd annotationViews: [MGLAnnotationView]) {}