arrows moves by location and compass
This commit is contained in:
parent
05c33574b4
commit
c3e897587e
1 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue