Commit f461466682e731c8cadba5d36c292242220fa1a8

Authored by 杨帅
1 parent f03cf478

1 轨迹工具恢复过滤精度

config.gradle
... ... @@ -21,7 +21,7 @@ ext {
21 21 //编译方式
22 22 debug : false,
23 23 //版本号
24   - version: "0.6.19",
  24 + version: "0.6.20",
25 25 //Lib库前缀
26 26 packeg : "com.cnlive.module",
27 27 //Lib库名称
... ...
moudle_pedometer/src/main/java/com/cnlive/moudle/collectionTrace/frame/view/StartTraceFragmentView.java
... ... @@ -423,7 +423,10 @@ public class StartTraceFragmentView implements MvpView, SensorEventListener {
423 423 if (location == null || mMapView == null) {
424 424 return;
425 425 }
426   -
  426 + if (isFirstLoc) {
  427 + isFirstLoc = false;
  428 + Toast.makeText(getContext(), "当前定位误差为:" + location.getRadius() + "米,请您移动至空旷地带!", Toast.LENGTH_SHORT).show();
  429 + }
427 430 //过滤定位精度
428 431 if (location.getRadius() > Constant.LOCA_ACCURACY) {
429 432 return;
... ... @@ -435,14 +438,7 @@ public class StartTraceFragmentView implements MvpView, SensorEventListener {
435 438 // 此处设置开发者获取到的方向信息,顺时针0-360
436 439 .direction(location.getDirection()).latitude(location.getLatitude())
437 440 .longitude(location.getLongitude()).build();
438   - if (isFirstLoc) {
439   - isFirstLoc = false;
440   - Toast.makeText(getContext(), "当前定位误差为:" + location.getRadius() + "米,请您移动至空旷地带!", Toast.LENGTH_SHORT).show();
441   - baiduMap.setMyLocationData(followMyLocation);
442   - MapStatus.Builder builder = new MapStatus.Builder();
443   - builder.target(currentLatLng).zoom(DEFULT_ZOOM);
444   - baiduMap.animateMapStatus(MapStatusUpdateFactory.newMapStatus(builder.build()));
445   - }
  441 +
446 442 // if (location.hasAddr()) {
447 443 // if (!TextUtils.isEmpty(location.getAddress().address)) {
448 444 // currentAddress = location.getAddress().address;
... ...