opt
This commit is contained in:
@@ -190,6 +190,7 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
mMapView.setOnMapTouchListener( this );
|
||||
mMapView.setOnMapClickListener( this );
|
||||
mMapView.getLocationClient().registerListener( this );
|
||||
// mMapView.getLocationClient().registerGpsListener( this );
|
||||
mMapView.registerListener( this, MapAutoApi.LISTENER_TYPE_ZOOM );
|
||||
mMapView.registerListener( this, MapAutoApi.LISTENER_TYPE_ROTATE );
|
||||
mMapView.registerListener( this, MapAutoApi.LISTENER_TYPE_3D );
|
||||
@@ -955,7 +956,7 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
public void rtkEnable( boolean enable ) {
|
||||
try {
|
||||
mRtkEnable = !mRtkEnable;
|
||||
TipToast.shortTip( mRtkEnable ? "已开启gps道路匹配" : "已开启rtk道路匹配" );
|
||||
TipToast.shortTip( mRtkEnable ? "已开启rtk道路匹配" : "已开启gps道路匹配" );
|
||||
mMapView.getLocationClient().rtkEnable( mRtkEnable );
|
||||
} catch ( Exception e ) {
|
||||
Logger.e( TAG, e, "rtkEnable" );
|
||||
|
||||
@@ -72,7 +72,7 @@ public class ALocationClient implements IMogoLocationClient {
|
||||
destroyWarming();
|
||||
return;
|
||||
}
|
||||
if ( mClient != null && mClient.isStarted() ) {
|
||||
if ( mClient != null && mClient.isAGpsStarted() ) {
|
||||
mClient.stop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user