Disable my loc animation if speed < 5 km/h

This commit is contained in:
Alexey Kulish 2017-04-01 17:23:36 +03:00
parent 254e10d4dc
commit 6de6c02052

View file

@ -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 {