Skip to content

Commit 048db99

Browse files
committed
[ios] fix changes from mapbox#5987
1 parent 73fa7ea commit 048db99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform/ios/src/MGLMapView.mm

+2
Original file line numberDiff line numberDiff line change
@@ -2922,6 +2922,8 @@ - (void)addAnnotations:(NS_ARRAY_OF(id <MGLAnnotation>) *)annotations
29222922
MGLAnnotationTag annotationTag = _mbglMap->addAnnotation([multiPoint annotationObjectWithDelegate:self]);
29232923
MGLAnnotationContext context;
29242924
context.annotation = annotation;
2925+
2926+
_annotationTagsByAnnotation[annotation] = annotationTag;
29252927
_annotationContextsByAnnotationTag[annotationTag] = context;
29262928

29272929
[(NSObject *)annotation addObserver:self forKeyPath:@"coordinates" options:0 context:(void *)(NSUInteger)annotationTag];

0 commit comments

Comments
 (0)