Disable my loc animation if speed < 5 km/h
This commit is contained in:
parent
254e10d4dc
commit
6de6c02052
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,8 @@ public class PointLocationLayer extends OsmandMapLayer implements ContextMenuLay
|
|||
}
|
||||
int locationX;
|
||||
int locationY;
|
||||
if (mapViewTrackingUtilities.isMapLinkedToLocation()) {
|
||||
if (mapViewTrackingUtilities.isMapLinkedToLocation()
|
||||
&& !MapViewTrackingUtilities.isSmallSpeedForAnimation(lastKnownLocation)) {
|
||||
locationX = box.getPixXFromLonNoRot(box.getLongitude());
|
||||
locationY = box.getPixYFromLatNoRot(box.getLatitude());
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue