bugfix: UI-393

This commit is contained in:
wangcongtao
2020-03-02 17:53:48 +08:00
parent fe46c48447
commit 85d0aae48b
5 changed files with 43 additions and 18 deletions

View File

@@ -441,6 +441,10 @@ public class AMapNaviViewWrapper implements IMogoMapView,
if ( checkAMapView() ) {
MyLocationStyle style = mMapView.getMap().getMyLocationStyle();
style.showMyLocation( visible );
if ( visible ) {
// 强制刷新一遍车标
style.myLocationIcon( BitmapDescriptorFactory.fromResource( R.drawable.map_api_ic_current_location2 ) );
}
mMapView.getMap().setMyLocationStyle( style );
}
}
@@ -455,8 +459,6 @@ public class AMapNaviViewWrapper implements IMogoMapView,
style.strokeColor( Color.TRANSPARENT );
style.strokeWidth( 0 );
style.radiusFillColor( Color.TRANSPARENT );
style.myLocationIcon(
BitmapDescriptorFactory.fromResource( R.drawable.map_api_ic_current_location2 ) );
mMapView.getMap().setMyLocationStyle( style );
}
}
@@ -670,4 +672,11 @@ public class AMapNaviViewWrapper implements IMogoMapView,
}
}
}
@Override
public void forceRender() {
if ( checkAMapView() ) {
mMapView.getMap().runOnDrawFrame();
}
}
}

View File

@@ -194,4 +194,11 @@ public class AMapUIController implements IMogoMapUIController {
mClient.showBounds( lonLats, bound );
}
}
@Override
public void forceRender() {
if ( mClient != null ) {
mClient.forceRender();
}
}
}