Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - invalidating MyLocationView bearing when not following po…
Browse files Browse the repository at this point in the history
…sition (#9212)
  • Loading branch information
tobrun authored Jun 8, 2017
1 parent 78eca86 commit 233117f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ public void setLocation(Location location) {

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) {
Expand Down

0 comments on commit 233117f

Please sign in to comment.