解决部分机器调用showBounds方法无效的问题

This commit is contained in:
wangcongtao
2020-11-25 21:41:37 +08:00
parent 25d8962a05
commit 71c88f73e7

View File

@@ -877,6 +877,12 @@ public class AMapNaviViewWrapper implements IMogoMapView,
try {
LatLngBounds latLngBounds = MogoMapUtils.getLatLngBounds( carPosition, lonLats, lockCarPosition );
if ( !lockCarPosition ) {
changeMyLocationType2UnFollow();
try {
bnHooker.clearAllMessages();
} catch ( Exception e ) {
e.printStackTrace();
}
loseLockMode();
}
mMapView.getMap().moveCamera( CameraUpdateFactory.newLatLngBoundsRect( latLngBounds, bound.left, bound.right, bound.top, bound.bottom ) );