Пример #1
0
        GeoCoder mSearch = null; // ����ģ�飬Ҳ��ȥ���ͼģ�����ʹ��

        #endregion Fields

        #region Methods

        public void OnGetGeoCodeResult(GeoCodeResult 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));
            string strInfo = string.Format("γ�ȣ�{0:F6} ���ȣ�{1:F6}",
                    result.Location.Latitude, result.Location.Longitude);
            Toast.MakeText(this, strInfo, ToastLength.Long).Show();
        }
Пример #2
0
 public void OnGetGeoCodeResult(GeoCodeResult result)
 {
 }