本文整理汇总了Java中com.baidu.mapapi.search.MKSearch类的典型用法代码示例。如果您正苦于以下问题:Java MKSearch类的具体用法?Java MKSearch怎么用?Java MKSearch使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MKSearch类属于com.baidu.mapapi.search包,在下文中一共展示了MKSearch类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onOptionsItemSelected
import com.baidu.mapapi.search.MKSearch; //导入依赖的package包/类
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// TODO Auto-generated method stub
switch (item.getItemId())// �õ��������item��itemId
{
case R.id.menu_begin:
pdialog = LoadingDialog.createLoadingDialog(LjghTab.this,
"���ڹ滮·��...");
pdialog.show();
mLocClient.stop();
mMKSearch = new MKSearch();
mMKSearch.init(mBMapMan, new MapSearchListener());
MKPlanNode start = new MKPlanNode();
start.pt = new GeoPoint((int) (mywd * 1E6), (int) (myjd * 1E6));
MKPlanNode end = new MKPlanNode();
end.pt = new GeoPoint((int) (wd * 1E6), (int) (jd * 1E6));
mMKSearch.setDrivingPolicy(MKSearch.ECAR_TIME_FIRST);
mMKSearch.drivingSearch(null, start, null, end);
break;
}
return super.onOptionsItemSelected(item);
}
示例2: MyPoiOverlay
import com.baidu.mapapi.search.MKSearch; //导入依赖的package包/类
public MyPoiOverlay(LocationActivity activity, MapView mapView, MKSearch search)
{
super(activity, mapView);
mSearch = search;
mActivity = activity;
}
示例3: MyPoiOverlay
import com.baidu.mapapi.search.MKSearch; //导入依赖的package包/类
public MyPoiOverlay(Activity activity, MapView mapView, MKSearch search) {
super(activity, mapView);
mSearch = search;
}
示例4: initMKSearch
import com.baidu.mapapi.search.MKSearch; //导入依赖的package包/类
private void initMKSearch()
{
mMKSearch = new MKSearch();
mMKSearch.init(mBMapManager, new MKSearchListenerImpl());
}