Example #1
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     SetContentView(Resource.Layout.activity_share_demo_activity);
     mMapView = FindViewById<MapView>(Resource.Id.bmapView);
     mBaiduMap = mMapView.Map;
     mPoiSearch = PoiSearch.NewInstance();
     mPoiSearch.SetOnGetPoiSearchResultListener(this);
     mShareUrlSearch = ShareUrlSearch.NewInstance();
     mShareUrlSearch.SetOnGetShareUrlResultListener(this);
     mGeoCoder = GeoCoder.NewInstance();
     mGeoCoder.SetOnGetGeoCodeResultListener(this);
 }
Example #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_geocoder);
            ICharSequence titleLable = new String("������빦��");
            Title = titleLable.ToString();

            // ��ͼ��ʼ��
            mMapView = FindViewById<MapView>(Resource.Id.bmapView);
            mBaiduMap = mMapView.Map;

            // ��ʼ������ģ�飬ע���¼�����
            mSearch = GeoCoder.NewInstance();
            mSearch.SetOnGetGeoCodeResultListener(this);
        }