Example #1
0
 public void OnGetBusLineResult(BusLineResult result)
 {
     if (result == null || result.Error != SearchResult.ERRORNO.NoError)
     {
         Toast.MakeText(this, "��Ǹ��δ�ҵ����",
                 ToastLength.Long).Show();
         return;
     }
     mBaiduMap.Clear();
     route = result;
     nodeIndex = -1;
     BusLineOverlay overlay = new BusLineOverlay(mBaiduMap);
     mBaiduMap.SetOnMarkerClickListener(overlay);
     overlay.SetData(result);
     overlay.AddToMap();
     overlay.ZoomToSpan();
     mBtnPre.Visibility = ViewStates.Visible;
     mBtnNext.Visibility = ViewStates.Visible;
     Toast.MakeText(this, result.BusLineName,
             ToastLength.Short).Show();
 }
Example #2
0
 public void OnGetPoiResult(PoiResult result)
 {
     if (result == null || result.Error != SearchResult.ERRORNO.NoError)
     {
         Toast.MakeText(this, "��Ǹ��δ�ҵ����",
                 ToastLength.Long).Show();
         return;
     }
     // ��������poi���ҵ�����Ϊ������·��poi
     busLineIDList.Clear();
     foreach (PoiInfo poi in result.AllPoi)
     {
         if (poi.Type == PoiInfo.POITYPE.BusLine
                 || poi.Type == PoiInfo.POITYPE.SubwayLine)
         {
             busLineIDList.Add(poi.Uid);
         }
     }
     SearchNextBusline(null);
     route = null;
 }