fix log print

This commit is contained in:
jiaguofeng
2020-08-18 17:45:03 +08:00
parent 6450148f09
commit d10b4dba2b
2 changed files with 5 additions and 6 deletions

View File

@@ -699,17 +699,17 @@ public class AMapViewWrapper implements IMogoMapView, IMogoMapUIController, Loca
@Override
public void onMapStatusChanged(int type, int value) {
Log.i(TAG, "mapop--onMapStatusChanged-: " + type + "," + value);
Logger.i(TAG, "mapop--onMapStatusChanged-: " + type + "," + value);
}
@Override
public void onCameraChange(int type, int value) {
Log.i(TAG, "mapop--onCameraChange-: " + type + "," + value);
Logger.i(TAG, "mapop--onCameraChange-: " + type + "," + value);
}
@Override
public void onCameraChangeFinish(@Nullable CameraPosition cameraPosition) {
Log.i(TAG, "mapop--onCameraChangeFinish-: " + cameraPosition + "cost:" + (System.currentTimeMillis() - startTime));
Logger.i(TAG, "mapop--onCameraChangeFinish-: " + cameraPosition + "cost:" + (System.currentTimeMillis() - startTime));
if (cameraPosition != null) {
Trace.beginSection("timer.onCameraChangeFinish");
MogoMapListenerHandler.getInstance().onMapChanged(ObjectUtils.fromAMap(cameraPosition.getTarget()),

View File

@@ -50,7 +50,7 @@ public class AMapWrapper implements IMogoMap {
private IMogoUiSettings mUiSettings;
public AMapWrapper(MapAutoViewHelper map, MapAutoView mapView, IMogoMapUIController controller) {
Log.i(TAG, "autoop--AMapWrapper: init"+this);
Logger.i(TAG, "autoop--AMapWrapper: init"+this);
this.mAMap = map;
sAMap = map;
this.mMapView = mapView;
@@ -82,11 +82,10 @@ public class AMapWrapper implements IMogoMap {
@Override
public IMogoMarker addMarker(String tag, MogoMarkerOptions options) {
Log.i(TAG, "autoop-addMarker: " + tag + ",MogoMarkerOptions:" + options + ",AMap:" + (mAMap != null)+",this:"+this);
Logger.i(TAG, "autoop-addMarker: " + tag + ",MogoMarkerOptions:" + options + ",AMap:" + (mAMap != null)+",this:"+this);
if (!checkAMap()) {
return null;
}
Log.i(TAG, "autoop-addMarker: AMap is not null");
MarkerOptions markerOptions = ObjectUtils.fromMogo(options);
if (markerOptions == null) {
Logger.e(TAG, "marker参数为空");