diff options
author | Fredrik Karlsson <bjorn.fredrik.karlsson@gmail.com> | 2016-06-21 15:21:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-21 15:21:22 +0200 |
commit | 3995d6ff68a51dd4543ad71f424adf261e1e8baf (patch) | |
tree | c4fbf0eea8d6d88ea900b2dd8ffc1794a5326adf /platform/ios/src/MGLMapView.h | |
parent | a7d5717cf5a5adb6d2bb5641c81c97c46965b8fa (diff) | |
download | qtlocation-mapboxgl-3995d6ff68a51dd4543ad71f424adf261e1e8baf.tar.gz |
[ios] fixes #5406 view for annotation (#5413)
Diffstat (limited to 'platform/ios/src/MGLMapView.h')
-rw-r--r-- | platform/ios/src/MGLMapView.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h index 1319228c1a..d6bc25f961 100644 --- a/platform/ios/src/MGLMapView.h +++ b/platform/ios/src/MGLMapView.h @@ -952,6 +952,15 @@ IB_DESIGNABLE - (void)removeAnnotations:(NS_ARRAY_OF(id <MGLAnnotation>) *)annotations; /** + Returns an `MGLAnnotationView` if the given annotation is currently associated + with a view, otherwise nil. + + @param annotation The annotation associated with the view. + Annotation must conform to the `MGLAnnotation` protocol. + */ +- (nullable MGLAnnotationView *)viewForAnnotation:(id <MGLAnnotation>)annotation; + +/** Returns a reusable annotation image object associated with its identifier. For performance reasons, you should generally reuse `MGLAnnotationImage` |