我想禁用xamarin.forms.maps中引脚上的信息窗口?有办法吗?
发布于 2021-10-19 02:43:11
下面是关于删除地图中的信息窗口的代码,您可以将其添加到要使用的方法中。
nativeMap.DidDeselectAnnotationView += OnDidDeselectAnnotationView;
void OnDidDeselectAnnotationView(object sender, MKAnnotationViewEventArgs e)
{
if (!e.View.Selected)
{
customPinView.RemoveFromSuperview();
customPinView.Dispose();
customPinView = null;
}
}https://stackoverflow.com/questions/69622273
复制相似问题