merge och
This commit is contained in:
@@ -794,34 +794,37 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
}
|
||||
} else {
|
||||
// 通过不同的方向类型来改变车模,目前暂定三种模型,drawlevel 1 绿,2 黄,3 红,绿色的时候需要把相应的切换为默认模型
|
||||
// if (mAdasResult != null) {
|
||||
// Logger.d("liyz", " mAdasResult.drawlevel = " + mAdasResult.drawlevel);
|
||||
// if (mAdasResult.drawlevel == 1 && isShowWarn) {
|
||||
// mSelfMarker.marker3DIcon(R.raw.car);
|
||||
// isShowWarn = false;
|
||||
// } else if (mAdasResult.drawlevel == 2) { //不处理
|
||||
// Logger.d("liyz", " mDrawlevel = " + mDrawlevel);
|
||||
// if (mDrawlevel == 1 && isShowWarn) {
|
||||
// mSelfMarker.marker3DIcon(R.raw.car);
|
||||
// isShowWarn = false;
|
||||
// } else if (mDrawlevel == 2) { //不处理
|
||||
//
|
||||
// } else if (mAdasResult.drawlevel == 3 && !isShowWarn) {
|
||||
// //继续判断相应的方位,目前是只有 前方 TODO
|
||||
// mSelfMarker.marker3DIcon(R.raw.qfpz);
|
||||
// isShowWarn = true;
|
||||
// }
|
||||
// } else {
|
||||
//// mSelfMarker.marker3DIcon(R.raw.car);
|
||||
// } else if (mDrawlevel == 3 && !isShowWarn) {
|
||||
// //继续判断相应的方位,目前是只有 前方 TODO
|
||||
// mSelfMarker.marker3DIcon(R.raw.qfpz);
|
||||
// isShowWarn = true;
|
||||
// }
|
||||
|
||||
// UiThreadHandler.postDelayed( () -> {
|
||||
//
|
||||
// UiThreadHandler.postDelayed(() -> {
|
||||
// if (!isShowWarn) {
|
||||
// mSelfMarker.marker3DIcon(R.raw.qfpz);
|
||||
// isShowWarn = true;
|
||||
// }
|
||||
// }, 6_000L );
|
||||
// }, 6_000L);
|
||||
|
||||
}
|
||||
|
||||
showSelfSpeed(location.getSpeed());
|
||||
}
|
||||
|
||||
private int mDrawlevel;
|
||||
|
||||
@Override
|
||||
public void setAdasRecognizedResult(int drawlevel) {
|
||||
mDrawlevel = drawlevel;
|
||||
}
|
||||
|
||||
|
||||
private TextView mSpeedView = null;
|
||||
private int mLastYOffset = 20;
|
||||
|
||||
|
||||
@@ -374,4 +374,10 @@ public class AMapUIController implements IMogoMapUIController {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAdasRecognizedResult(int drawlevel) {
|
||||
if (mClient != null) {
|
||||
mClient.setAdasRecognizedResult(drawlevel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user