changed map arrow behaviour

This commit is contained in:
Chumva 2018-03-06 14:13:53 +02:00
parent 9bfc6a6d20
commit 304535c164

View file

@ -215,11 +215,7 @@ public class MapMarkersWidgetsFactory {
return; return;
} }
boolean mapLinkedToLoc = map.getMapViewTrackingUtilities().isMapLinkedToLocation(); Float heading = map.getMapViewTrackingUtilities().getHeading();
Float heading = 0f;
if (mapLinkedToLoc) {
heading = map.getMapViewTrackingUtilities().getHeading();
}
MapMarker marker = markers.get(0); MapMarker marker = markers.get(0);
updateUI(loc, heading, marker, arrowImg, distText, okButton, addressText, true, customLocation != null); updateUI(loc, heading, marker, arrowImg, distText, okButton, addressText, true, customLocation != null);