Issue
I want to disable info window on the pins in xamarin.forms.maps ? Is there a way to do that ?
Solution
Here is the code about remove the info window in map you can add it in the method you want to use
nativeMap.DidDeselectAnnotationView += OnDidDeselectAnnotationView;
void OnDidDeselectAnnotationView(object sender, MKAnnotationViewEventArgs e)
{
if (!e.View.Selected)
{
customPinView.RemoveFromSuperview();
customPinView.Dispose();
customPinView = null;
}
}
Answered By - Adrain Zhu -MSFT
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.