arrows moves by location and compass

This commit is contained in:
Chumva 2018-03-01 14:57:10 +02:00
parent 05c33574b4
commit c3e897587e

View file

@ -188,19 +188,19 @@ public class MapMarkersWidgetsFactory {
if (!map.getMyApplication().getSettings().USE_MAP_MARKERS.get()) {
return;
}
if (customLocation != null) {
loc = customLocation;
} else {
Location l = map.getMyApplication().getLocationProvider().getLastStaleKnownLocation();
boolean useCenterOfMap = !(map.getMapViewTrackingUtilities().isMapLinkedToLocation());
if (useCenterOfMap) {
loc = map.getMapLocation();
customLocation = loc;
} else if (l != null) {
if (l != null) {
loc = new LatLon(l.getLatitude(), l.getLongitude());
} else {
loc = null;
}
if(!map.getMapViewTrackingUtilities().isMapLinkedToLocation()){
customLocation = loc;
}
}
List<MapMarker> markers = helper.getMapMarkers();