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 have a scenario for which I don't want to show a CalloutView to be displayed when an annotation will get selected. Instead, I want MapViewPlus to let me know that an annotation has been tapped and I will then show a custom popup on self.view. Is it possible with MapViewPlus?
P.S. I understand that this is not the actual behavior of a MapView itself, however for someways is this will be possible it will be more easy for us to display a map with MapViewPlus while customizing the UI as per our need.
The text was updated successfully, but these errors were encountered:
2) Return this EmptyView from delegate method when you don't want to show callout view:
func mapView(_ mapView: MapViewPlus, calloutViewFor annotationView: AnnotationViewPlus) -> CalloutViewPlus{
// calloutCanBeShown is any method to decide if you want to show it or not
guard calloutCanBeShown() else { return EmptyView() }
return YourCalloutViewInstance
3) Hide the anchor view like in #2 when you won't show the callout view. So, both callout view and anchor view will be hidden.
Fair point. You will be able to do this in 0.2.0. As in the MKMapView, allowing a user to opt-out of showing a callout view for a specific annotation must be included in MapViewPlus. As of MapViewPlus adding a 'plus' by passing the view model to the callout view that conforms to CalloutViewPlus protocol, it also must provide a way to pass this view model to the user's custom view class that doesn't conform to this protocol.
I have a scenario for which I don't want to show a CalloutView to be displayed when an annotation will get selected. Instead, I want
MapViewPlus
to let me know that an annotation has been tapped and I will then show a custom popup onself.view
. Is it possible withMapViewPlus
?P.S. I understand that this is not the actual behavior of a MapView itself, however for someways is this will be possible it will be more easy for us to display a map with MapViewPlus while customizing the UI as per our need.
The text was updated successfully, but these errors were encountered: