opt
This commit is contained in:
@@ -176,6 +176,7 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
if ( mMapView != null ) {
|
||||
mMapView.onCreate( bundle );
|
||||
}
|
||||
Logger.d( TAG, "map onCreate" );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -183,6 +184,7 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
if ( mMapView != null ) {
|
||||
mMapView.onResume();
|
||||
}
|
||||
Logger.d( TAG, "map onResume" );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -190,6 +192,8 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
if ( mMapView != null ) {
|
||||
mMapView.onPause();
|
||||
}
|
||||
|
||||
Logger.d( TAG, "map onPause" );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -197,6 +201,7 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
if ( mMapView != null ) {
|
||||
mMapView.onDestroy();
|
||||
}
|
||||
Logger.d( TAG, "map onDestroy" );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -204,10 +209,12 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
if ( mMapView != null ) {
|
||||
mMapView.onSaveInstanceState( outState );
|
||||
}
|
||||
Logger.d( TAG, "map onSaveInstanceState" );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLowMemory() {
|
||||
Logger.d( TAG, "map onLowMemory" );
|
||||
}
|
||||
|
||||
|
||||
@@ -414,10 +421,10 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
if ( checkAMapView() ) {
|
||||
mMapView.getMap().setMyLocationEnabled( true );
|
||||
MyLocationStyle style = mMapView.getMap().getMyLocationStyle();
|
||||
style.showMyLocation( visible );
|
||||
style.myLocationType( MyLocationStyle.LOCATION_TYPE_LOCATION_ROTATE_NO_CENTER );
|
||||
style.strokeColor( Color.TRANSPARENT );
|
||||
style.strokeWidth( 0 );
|
||||
style.showMyLocation(visible);
|
||||
style.radiusFillColor( Color.TRANSPARENT );
|
||||
style.myLocationIcon( BitmapDescriptorFactory.fromResource( R.drawable.map_api_ic_current_location ) );
|
||||
mMapView.getMap().setMyLocationStyle( style );
|
||||
|
||||
@@ -131,7 +131,7 @@ public class NaviClient implements IMogoNavi {
|
||||
mAMapNaviListener.stopNavi();
|
||||
}
|
||||
// 开启巡航 巡航时返回电子眼和特殊道路设施信息
|
||||
mAMapNavi.startAimlessMode( AimLessMode.CAMERA_AND_SPECIALROAD_DETECTED );
|
||||
// mAMapNavi.startAimlessMode( AimLessMode.CAMERA_AND_SPECIALROAD_DETECTED );
|
||||
}
|
||||
|
||||
|
||||
@@ -143,7 +143,8 @@ public class NaviClient implements IMogoNavi {
|
||||
// 关闭巡航
|
||||
//mAMapNavi.stopAimlessMode();
|
||||
mIsRealNavi = isRealNavi;
|
||||
mAMapNavi.startNavi( isRealNavi ? NaviType.GPS : NaviType.EMULATOR );
|
||||
boolean result = mAMapNavi.startNavi( isRealNavi ? NaviType.GPS : NaviType.EMULATOR );
|
||||
Logger.d( TAG, "start navi status: %s", result );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user