[android] - invalidating MyLocationView bearing when not following position (#9212)
This commit is contained in:
@@ -461,6 +461,11 @@ public class MyLocationView extends View {
|
||||
|
||||
this.location = location;
|
||||
myLocationBehavior.updateLatLng(location);
|
||||
|
||||
if (mapboxMap != null && myBearingTrackingMode == MyBearingTracking.GPS
|
||||
&& myLocationTrackingMode == MyLocationTracking.TRACKING_NONE) {
|
||||
setBearing(mapboxMap.getCameraPosition().bearing);
|
||||
}
|
||||
}
|
||||
|
||||
public void setLocationChangeAnimationEnabled(boolean locationChangeAnimationEnabled) {
|
||||
|
||||
Reference in New Issue
Block a user