This commit is contained in:
wangcongtao
2021-01-21 15:01:05 +08:00
parent 948a487ffc
commit 425ddf1489
87 changed files with 174 additions and 9643 deletions

View File

@@ -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" );

View File

@@ -72,7 +72,7 @@ public class ALocationClient implements IMogoLocationClient {
destroyWarming();
return;
}
if ( mClient != null && mClient.isStarted() ) {
if ( mClient != null && mClient.isAGpsStarted() ) {
mClient.stop();
}
}