定位蓝点功能
This commit is contained in:
@@ -411,7 +411,6 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
@Override
|
||||
public void showMyLocation(boolean visible) {
|
||||
if (checkAMapView()) {
|
||||
mMapView.getMap().setMyLocationEnabled(visible);
|
||||
MyLocationStyle style = mMapView.getMap().getMyLocationStyle();
|
||||
style.showMyLocation(visible);
|
||||
mMapView.getMap().setMyLocationStyle(style);
|
||||
@@ -424,6 +423,7 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
MyLocationStyle style = mMapView.getMap().getMyLocationStyle();
|
||||
style.myLocationType(MyLocationStyle.LOCATION_TYPE_LOCATION_ROTATE_NO_CENTER);
|
||||
style.interval(1000);
|
||||
style.anchor(0.5F,0.5F);
|
||||
style.strokeColor(Color.TRANSPARENT);
|
||||
style.strokeWidth(0);
|
||||
style.myLocationIcon(
|
||||
@@ -462,7 +462,7 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
public void onNaviStarted() {
|
||||
if (checkAMapView()) {
|
||||
mMapView.setCarOverlayVisible(true);
|
||||
//showMyLocation( false );
|
||||
showMyLocation( false );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -191,8 +191,6 @@ public class EntranceFragment extends MvpFragment< EntranceView, EntrancePresent
|
||||
mCommonAddress.setVisibility( View.GONE );
|
||||
mNaviInfo.setVisibility( View.VISIBLE );
|
||||
mExitNavi.setVisibility( View.VISIBLE );
|
||||
|
||||
mMApUIController.showMyLocation(false);
|
||||
mMApUIController.setPointToCenter( 0.675926, 0.77552 );
|
||||
}
|
||||
|
||||
@@ -203,8 +201,6 @@ public class EntranceFragment extends MvpFragment< EntranceView, EntrancePresent
|
||||
mExitNavi.setVisibility( View.GONE );
|
||||
mSpeedLimit.setVisibility( View.GONE );
|
||||
mMApUIController.setPointToCenter( 0.66145, 0.590688 );
|
||||
mMApUIController.showMyLocation(true);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user