bugfix: UI-393
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,4 +194,11 @@ public class AMapUIController implements IMogoMapUIController {
|
||||
mClient.showBounds( lonLats, bound );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void forceRender() {
|
||||
if ( mClient != null ) {
|
||||
mClient.forceRender();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,4 +155,9 @@ public interface IMogoMapUIController {
|
||||
* @param bound 地图上可显示的范围
|
||||
*/
|
||||
void showBounds( List< MogoLatLng > lonLats, Rect bound );
|
||||
|
||||
/**
|
||||
* 强制刷新地图
|
||||
*/
|
||||
void forceRender();
|
||||
}
|
||||
|
||||
@@ -187,4 +187,11 @@ public class MogoMapUIController implements IMogoMapUIController {
|
||||
mDelegate.showBounds( lonLats, bound );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void forceRender() {
|
||||
if ( mDelegate != null ) {
|
||||
mDelegate.forceRender();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user