This commit is contained in:
wangcongtao
2020-02-19 13:18:26 +08:00
8 changed files with 27 additions and 6 deletions

View File

@@ -155,6 +155,10 @@ public class AMapNaviViewWrapper implements IMogoMapView,
aMap.setOnCameraChangeListener( this );
}
AMapMessageManager.getInstance().registerAMapMessageListener( this );
}
private Context getContext() {
@@ -422,6 +426,8 @@ public class AMapNaviViewWrapper implements IMogoMapView,
mMapView.getMap().setMyLocationEnabled( true );
MyLocationStyle style = mMapView.getMap().getMyLocationStyle();
style.myLocationType( MyLocationStyle.LOCATION_TYPE_LOCATION_ROTATE_NO_CENTER );
style.interval(1000);
style.showMyLocation( visible );
style.strokeColor( Color.TRANSPARENT );
style.strokeWidth( 0 );
style.showMyLocation(visible);
@@ -461,7 +467,7 @@ public class AMapNaviViewWrapper implements IMogoMapView,
public void onNaviStarted() {
if ( checkAMapView() ) {
mMapView.setCarOverlayVisible( true );
showMyLocation( false );
//showMyLocation( false );
}
}

View File

@@ -46,7 +46,7 @@ public class NaviClient implements IMogoNavi {
private NaviClient( Context context ) {
mAMapNavi = AMapNavi.getInstance( context );
mAMapNavi.setEmulatorNaviSpeed( 120 );
//mAMapNavi.setEmulatorNaviSpeed( 120 );
mAMapNavi.setUseInnerVoice( true );
mAMapNaviListener = new NaviListenerAdapter( context, mAMapNavi, this );
mAimlessModeListener = new AimlessModeListenerAdapter() {

View File

@@ -62,6 +62,9 @@ public class NaviListenerAdapter extends AMapNaviListenerAdapter {
mNaviOverlayHelper = new NaviOverlayHelper( mAMapNavi, AMapWrapper.getAMap(), mContext );
}
public void setNaviing( boolean mIsNaviing ) {
this.mIsNaviing = mIsNaviing;
}
@@ -90,6 +93,7 @@ public class NaviListenerAdapter extends AMapNaviListenerAdapter {
@Override
public void onInitNaviSuccess() {
MogoNaviListenerHandler.getInstance().onInitNaviSuccess();
//mAMapNavi.startAimlessMode(AimLessMode.CAMERA_AND_SPECIALROAD_DETECTED);
}
@Override
@@ -202,6 +206,7 @@ public class NaviListenerAdapter extends AMapNaviListenerAdapter {
@Override
public void onLocationChange( AMapNaviLocation aMapNaviLocation ) {
super.onLocationChange( aMapNaviLocation );
Logger.i( TAG, "onLocationChange" +aMapNaviLocation.getCoord().toString());
mNaviOverlayHelper.handlePassedLocation( aMapNaviLocation );
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 482 B

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 788 B

After

Width:  |  Height:  |  Size: 804 B