Commit 28020dea44a22fb41ce7d373d5f49f5c1dce8ce1
1 parent
e0a9be9c
1 修改赛事详情页指南针的位置
Showing
2 changed files
with
8 additions
and
6 deletions
config.gradle
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunRaceDetailFragmentView.java
| ... | ... | @@ -665,10 +665,12 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { |
| 665 | 665 | if (baiduMap == null) { |
| 666 | 666 | baiduMap = mMapView.getMap(); |
| 667 | 667 | } |
| 668 | - | |
| 669 | - if (routePlanSearch == null) { | |
| 670 | - routePlanSearch = RoutePlanSearch.newInstance(); | |
| 671 | - } | |
| 668 | + //设置指南针位置 | |
| 669 | + android.graphics.Point point = new android.graphics.Point(ScreenUtil.getScreenWidth(getContext()) - 80, 80); | |
| 670 | + baiduMap.setCompassPosition(point); | |
| 671 | +// if (routePlanSearch == null) { | |
| 672 | +// routePlanSearch = RoutePlanSearch.newInstance(); | |
| 673 | +// } | |
| 672 | 674 | if (mUiSettings == null) { |
| 673 | 675 | mUiSettings = baiduMap.getUiSettings(); |
| 674 | 676 | } |
| ... | ... | @@ -1137,7 +1139,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { |
| 1137 | 1139 | location.getLongitude()); |
| 1138 | 1140 | baiduMap.setMyLocationData(followMyLocation); |
| 1139 | 1141 | //没有获取到轨迹 |
| 1140 | - if ((null == queryResultPoints||queryResultPoints.size()<1) && null != firstLatLng) { | |
| 1142 | + if ((null == queryResultPoints || queryResultPoints.size() < 1) && null != firstLatLng) { | |
| 1141 | 1143 | builder.target(firstLatLng).zoom(DEFULT_ZOOM); |
| 1142 | 1144 | baiduMap.animateMapStatus(MapStatusUpdateFactory.newMapStatus(builder.build())); |
| 1143 | 1145 | } | ... | ... |