![](/img/trans.png)
[英]How to use Google Maps on iOS using Xamarin.Forms.Maps?
[英]Is there a way to disable info window on xamarin.forms.maps on iOS project?
我想在 xamarin.forms.maps 中的引腳上禁用信息窗口? 有沒有辦法做到這一點 ?
這是關於刪除地圖中的信息窗口的代碼,您可以將其添加到您要使用的方法中
nativeMap.DidDeselectAnnotationView += OnDidDeselectAnnotationView;
void OnDidDeselectAnnotationView(object sender, MKAnnotationViewEventArgs e)
{
if (!e.View.Selected)
{
customPinView.RemoveFromSuperview();
customPinView.Dispose();
customPinView = null;
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.