You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Tracked it down to updating the rotation while the animation is still ongoing. Regression from commit e598bbf. I'm going to keep the input limitation from that commit but replace the rotateBy with a rotate animation. This was initially implemented on request from a client but is no longer needed. The requested use-case from them was solved by using MarkerViewManager.getView(MarkerView marker) and calling rotation directly on the view instead.
@mdakram
When you have LocationTracking enabled and combine this with a tracking mode, the heading should always face up. The underlying map should adapt the camera position to match the direction you are going to (gps) or your device is pointing to (compass).
Note that @cammace reported an issue on compass tracking already: #6815
Instead of applying #6816 (comment), now thinking of fixing up rotateBy with:
/** * Animate a MarkerView with a given rotation. * * @param marker the MarkerView to rotate by * @param rotation the rotation by value */publicvoidanimateRotationBy(@NonNullMarkerViewmarker, floatrotation) {
ViewconvertView = markerViewMap.get(marker);
if (convertView != null) {
convertView.animate().cancel();
// calculate new directionfloatdiff = rotation - convertView.getRotation();
if (diff > 180.0f) {
diff -= 360.0f;
} elseif (diff < -180.0f) {
diff += 360.f;
}
AnimatorUtils.rotateBy(convertView, diff);
}
}
This will cancel the ongoing animation, take the current rotation and calculate the difference. In previous versions we used the previous set rotation but this was not taking in account that an animation was still ongoing.
Activity
tobrun commentedon Oct 26, 2016
Not reproducible with suggested OffRouteActivity and latest beta.
You probably have animations disabled in developer options?
tobrun commentedon Oct 26, 2016
I had @ivovandongen retest and he is seeing something different:

mdakram commentedon Oct 26, 2016
hi @tobrun can you please check why user tracking mode in current beta 4.UserLocation marker's heading is always facing up. thanks
tobrun commentedon Oct 26, 2016
Tracked it down to updating the rotation while the animation is still ongoing. Regression from commit e598bbf. I'm going to keep the input limitation from that commit but replace the
rotateBywith arotateanimation. This was initially implemented on request from a client but is no longer needed. The requested use-case from them was solved by usingMarkerViewManager.getView(MarkerView marker)and calling rotation directly on the view instead.tobrun commentedon Oct 26, 2016
@mdakram
When you have LocationTracking enabled and combine this with a tracking mode, the heading should always face up. The underlying map should adapt the camera position to match the direction you are going to (gps) or your device is pointing to (compass).
Note that @cammace reported an issue on compass tracking already: #6815
tobrun commentedon Oct 26, 2016
Instead of applying #6816 (comment), now thinking of fixing up
rotateBywith:This will cancel the ongoing animation, take the current rotation and calculate the difference. In previous versions we used the previous set rotation but this was not taking in account that an animation was still ongoing.
tobrun commentedon Oct 26, 2016
Merged in release branch with #6826.