[ios, macos] Fix an issue that triggers didSelectAnnotations#10538
Conversation
|
@fabian-guerra Could you explain why this change is necessary and how it’s fixing the issue? 🙇 |
|
@friedbunny in #9984 we added select/deselect support to shape annotations. Later in #10262 we made shape annotations part of the iterable annotations. The problem is since all annotations are a subclass of mapbox-gl-native/platform/ios/src/MGLMapView.mm Line 4062 in a344713 It was falling into: mapbox-gl-native/platform/ios/src/MGLMapView.mm Line 4048 in bcfe51c I added this code to avoid filtering shape annotations. Since are filtered here: mapbox-gl-native/platform/ios/src/MGLMapView.mm Lines 4154 to 4160 in a344713 Image based annotations avoided getting filtered by using the image |
|
@friedbunny I added more context. Please let me know if something is still not clear. |
friedbunny
left a comment
There was a problem hiding this comment.
Thanks for the explanation. ❤️
…nnotationImage based annotations.
a344713 to
f7587f3
Compare
f7587f3 to
e5dcf5e
Compare
Fixes #10523