You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.
I concur with codaman. The problem is that callout is dismissed when tapped on, but outside of an active control such as UIButton. A hacky solution is to add an empty interceptor button above all non-control subviews and below all control ones (buttons) of your custom callow. However, a better solution would be to override hitTest or something in CalloutAndAnchorView or CalloutViewPlus to prevent the dismissals. Check out "Adding Interactivity to our Custom Callout" at https://digitalleaves.com/blog/2016/12/building-the-perfect-ios-map-ii-completely-custom-annotation-views/
Overriding hitTest is already being done, thus the buttons inside callout view are responding to touch events. It can be improved to include MKAnnotationView type in one of the future versions.
When annotation is near the edges, calloutView half of part shows out of map
and another problem, when tapping the button on calloutView, annotation under view is clicked
The text was updated successfully, but these errors were encountered: