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);
}
Aggregations