Exemplo n.º 1
0
 public void OnGetReverseGeoCodeResult(ReverseGeoCodeResult result)
 {
     if (result == null || result.Error != SearchResult.ERRORNO.NoError)
     {
         Toast.MakeText(this, "��Ǹ��δ���ҵ����", ToastLength.Long)
                 .Show();
     }
     mBaiduMap.Clear();
     mBaiduMap.AddOverlay(new MarkerOptions().InvokePosition(result.Location)
             .InvokeIcon(BitmapDescriptorFactory
                     .FromResource(Resource.Drawable.icon_marka)));
     mBaiduMap.SetMapStatus(MapStatusUpdateFactory.NewLatLng(result
             .Location));
     Toast.MakeText(this, result.Address,
             ToastLength.Long).Show();
 }
Exemplo n.º 2
0
 public void OnGetReverseGeoCodeResult(ReverseGeoCodeResult result)
 {
     if (result == null || result.Error != SearchResult.ERRORNO.NoError)
     {
         Toast.MakeText(this, "��Ǹ��δ�ҵ����",
                 ToastLength.Long).Show();
         return;
     }
     mBaiduMap.Clear();
     mBaiduMap.SetOnMarkerClickListener(this);
     mAddrMarker = Android.Runtime.Extensions.JavaCast<Marker>(mBaiduMap.AddOverlay(new MarkerOptions()
             .InvokeIcon(BitmapDescriptorFactory
                     .FromResource(Resource.Drawable.icon_marka))
             .InvokeTitle(result.Address).InvokePosition(result.Location)));
 }