优化显示逻辑
This commit is contained in:
@@ -766,7 +766,7 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
}
|
||||
|
||||
private TextView mSpeedView = null;
|
||||
private int mLastYOffset = 10;
|
||||
private int mLastYOffset = 20;
|
||||
|
||||
private void showSelfSpeed(float speed) {
|
||||
|
||||
@@ -790,14 +790,14 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
|
||||
String speedVal = String.valueOf(speedIntVal);
|
||||
String infoResName = ResIdCache.getVal(speedVal);
|
||||
int offset = 10;
|
||||
int offset = 20;
|
||||
if ( !mMapView.getMapAutoViewHelper().getLockMode() ) {
|
||||
offset = 30;
|
||||
}
|
||||
if ( offset != mLastYOffset ) {
|
||||
mLastYOffset = offset;
|
||||
mSelfMarker.setInfoWindowOffset( 0, offset );
|
||||
}
|
||||
mSelfMarker.setInfoWindowOffset( 0, offset );
|
||||
if (TextUtils.isEmpty(infoResName)) {
|
||||
if (mSpeedView == null) {
|
||||
mSpeedView = new TextView(mMapView.getContext());
|
||||
|
||||
@@ -267,16 +267,6 @@ public class AMapMarkerWrapper implements IMogoMarker, Observer {
|
||||
@Override
|
||||
public void setOnMarkerClickListener( IMogoMarkerClickListener listener ) {
|
||||
mMogoMarkerClickListener = listener;
|
||||
// if ( mMarker != null ) {
|
||||
// mMarker.setOnMarkClickListener( new OnMarkClickListener() {
|
||||
// @Override
|
||||
// public void onMarkClick( @NotNull Marker marker ) {
|
||||
// if ( mMogoMarkerClickListener != null ) {
|
||||
// mMogoMarkerClickListener.onMarkerClicked( AMapMarkerWrapper.this );
|
||||
// }
|
||||
// }
|
||||
// } );
|
||||
// }
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -347,13 +337,6 @@ public class AMapMarkerWrapper implements IMogoMarker, Observer {
|
||||
return;
|
||||
}
|
||||
startScaleAnimation( fromX, toX, fromY, toY, duration, interpolator, null );
|
||||
// ScaleAnimation animationScale = new ScaleAnimation(fromX, toX, fromY, toY);
|
||||
// animationScale.setDuration(duration);
|
||||
// animationScale.setFillMode(Animation.FILL_MODE_FORWARDS);
|
||||
// animationScale.setInterpolator(interpolator);
|
||||
//
|
||||
// mMarker.setAnimation(animationScale);
|
||||
// mMarker.startAnimation();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -505,12 +488,14 @@ public class AMapMarkerWrapper implements IMogoMarker, Observer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void use3DResource( int model3D ) {
|
||||
public String use3DResource( int model3D ) {
|
||||
try {
|
||||
mMarker.setMarkerOptions( mMarker.getMarkeOptions().marker3DIcon( model3D ) );
|
||||
mMarker.marker3DIcon( model3D );
|
||||
return mMarker.getMarkeOptions().getMarkerIconName();
|
||||
} catch ( Exception e ) {
|
||||
Logger.e( TAG, e, "use3DResource" );
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user