Java 类com.baidu.mapapi.map.MapPoi 实例源码

项目:like_googleplus_layout    文件:LocationActivity.java   
public void onClickMapPoi(MapPoi poi)
{
    if (null != poi)
    {
        mEndGeoPoint = new GeoPoint(poi.geoPt.getLatitudeE6(), poi.geoPt.getLongitudeE6());
        LocationData clickLocationData = new LocationData();
        clickLocationData.latitude = poi.geoPt.getLatitudeE6() / 1000000.0;
        clickLocationData.longitude = poi.geoPt.getLongitudeE6() / 1000000.0;
        mClickLocationOverlay.setData(clickLocationData);
        mClickLocationOverlay.setMarker(getResources().getDrawable(R.drawable.ic_nav_turn_start_s));
        mMapView.getOverlays().remove(mClickLocationOverlay);
        // mMapView.getOverlays().add(mClickLocationOverlay);
        MKPoiInfo info = new MKPoiInfo();
        info.pt = poi.geoPt;
        info.address = poi.strText;
        routeDrive(info, true);
        mMapView.refresh();
        Toast.makeText(LocationActivity.this, poi.strText, Toast.LENGTH_SHORT).show();
    }
}
项目:AndroidOpen    文件:GeoCodeActivity.java   
@Override
public boolean onMapPoiClick(MapPoi mapPoi) {
    return false;
}
项目:AndroidOpen    文件:RoutePlanDemo.java   
@Override
public boolean onMapPoiClick(MapPoi poi) {
    return false;
}
项目:TAG    文件:BaiduMapActivity.java   
private void showMapWithLocationClient() {
    progressDialog = new ProgressDialog(this);
    progressDialog.setCanceledOnTouchOutside(false);
    progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
    progressDialog.setMessage("正在确定你的位置...");

    progressDialog.setOnCancelListener(new OnCancelListener() {

        public void onCancel(DialogInterface arg0) {
            if (progressDialog.isShowing()) {
                progressDialog.dismiss();
            }
            Log.d("map cancel retrieve location");
            finish();
        }
    });

    progressDialog.show();

    mLocClient = new LocationClient(this);
    mLocClient.registerLocationListener(myListener);

    LocationClientOption option = new LocationClientOption();
    option.setOpenGps(true);// 打开gps
    // option.setCoorType("bd09ll"); //设置坐标类型
    // Johnson change to use gcj02 coordination. chinese national standard
    // so need to conver to bd09 everytime when draw on baidu map
    option.setCoorType("gcj02");
    option.setScanSpan(30000);
    option.setAddrType("all");
    mLocClient.setLocOption(option);

    Drawable marker = this.getResources().getDrawable(R.drawable.icon_marka);
    // 为maker定义位置和边界
    marker.setBounds(0, 0, marker.getIntrinsicWidth(), marker.getIntrinsicHeight());
    mAddrOverlay = new ItemizedOverlay<OverlayItem>(marker, mMapView);
    mMapView.getOverlays().add(mAddrOverlay);

    mMapListener = new MKMapViewListener() {

        @Override
        public void onMapMoveFinish() {
            // TODO Auto-generated method stub
        }

        @Override
        public void onClickMapPoi(MapPoi mapPoiInfo) {
            // TODO Auto-generated method stub
            String title = "";
            if (mapPoiInfo != null) {
                title = mapPoiInfo.strText;
                Toast.makeText(BaiduMapActivity.this, title, Toast.LENGTH_SHORT).show();
            }
        }

        @Override
        public void onGetCurrentMap(Bitmap b) {
            // TODO Auto-generated method stub

        }

        @Override
        public void onMapAnimationFinish() {
        }
    };
    mMapView.regMapViewListener(mBMapManager, mMapListener);

    if (lastLocation != null) {
        GeoPoint point1 = new GeoPoint((int) (lastLocation.getLatitude() * 1e6), (int) (lastLocation.getLongitude() * 1e6));
        point1 = CoordinateConvert.fromGcjToBaidu(point1);
        mMapController.setCenter(point1);
    }
    mMapView.refresh();
    mMapView.invalidate();
}
项目:SmartTransXA    文件:TransferOnlineActivity.java   
@Override
public boolean onMapPoiClick(MapPoi arg0) {
    return false;
}
项目:SmartTransXA    文件:BusLineOnlineActivity.java   
@Override
public boolean onMapPoiClick(MapPoi result) {
    return false;
}
项目:MyCar    文件:RoutePlanActivity.java   
@Override
public boolean onMapPoiClick(MapPoi poi) {
    return false;
}
项目:MyCar    文件:BusLineSearchActivity.java   
@Override
public boolean onMapPoiClick(MapPoi poi) {
    return false;
}
项目:FindYou    文件:RoutePlan.java   
@Override
public boolean onMapPoiClick(MapPoi poi) {
    return false;
}
项目:BaiduMap-TrafficAssistant    文件:BusActivity.java   
@Override
public boolean onMapPoiClick(MapPoi poi) {
    return false;
}
项目:Mooc-map    文件:RoutePlan.java   
@Override
public boolean onMapPoiClick(MapPoi poi) {
    return false;
}
项目:Mooc-map    文件:BusLineSearch.java   
@Override
public boolean onMapPoiClick(MapPoi poi) {
    return false;
}
项目:BMap    文件:BusLineSearchDemo.java   
@Override
public boolean onMapPoiClick(MapPoi poi) {
    return false;
}
项目:FrontOne    文件:TransitRouteResultActivity.java   
@Override
public boolean onMapPoiClick(MapPoi arg0) {
    return false;
}
项目:FrontOne    文件:RoutePlanActivity.java   
@Override
public boolean onMapPoiClick(MapPoi arg0) {
    return false;
}
项目:eDao    文件:MapActivity.java   
@Override
public boolean onMapPoiClick(MapPoi arg0) {
    // TODO 自动生成的方法存根
    return false;
}
项目:NeXT_pyp    文件:BMapManagerActivity.java   
@Override
public void onClickMapPoi(MapPoi mapPoiInfo) {
    // 点击到地图可点标注时会回调此接口

    String title = "";

    if(mapPoiInfo != null){

        title = mapPoiInfo.strText;

        ComFun.showToast(title);

        mMapController.animateTo(mapPoiInfo.geoPt);

    }

}
项目:NeXT_pyp    文件:BMapManagerActivity.java   
@Override
public void onClickMapPoi(MapPoi mapPoiInfo) {
    // 点击到地图可点标注时会回调此接口

    String title = "";

    if(mapPoiInfo != null){

        title = mapPoiInfo.strText;

        ComFun.showToast(title);

        mMapController.animateTo(mapPoiInfo.geoPt);

    }

}
项目:VirtualLocation    文件:MapClickListener.java   
/**
 * 地图内 Poi 单击事件
 * @param mapPoi  点击的 poi 信息
 * @return
 */
@Override
public boolean onMapPoiClick(MapPoi mapPoi) {
    return false;
}
项目:itmarry    文件:PoiSelectActivity.java   
public void onClickMapPoi(MapPoi arg0) {
    // TODO Auto-generated method stub

}