Search in sources :

Example 1 with FlippingLoadingDialog

use of com.juns.wechat.dialog.FlippingLoadingDialog in project wechat by motianhuo.

the class BaiduMapActivity method showMapWithLocationClient.

private void showMapWithLocationClient() {
    mLoadingDialog = new FlippingLoadingDialog(this, "正在确定你的位置...");
    mLoadingDialog.show();
    mLocClient = new LocationClient(this);
    mLocClient.registerLocationListener(myListener);
    LocationClientOption option = new LocationClientOption();
    // 打开gps
    option.setOpenGps(true);
    // 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);
}
Also used : LocationClient(com.baidu.location.LocationClient) FlippingLoadingDialog(com.juns.wechat.dialog.FlippingLoadingDialog) LocationClientOption(com.baidu.location.LocationClientOption)

Aggregations

LocationClient (com.baidu.location.LocationClient)1 LocationClientOption (com.baidu.location.LocationClientOption)1 FlippingLoadingDialog (com.juns.wechat.dialog.FlippingLoadingDialog)1