added centerOfMap for arrow
This commit is contained in:
parent
192e562b35
commit
9615e255ea
1 changed files with 5 additions and 4 deletions
|
@ -188,15 +188,16 @@ public class MapMarkersWidgetsFactory {
|
|||
if (!map.getMyApplication().getSettings().USE_MAP_MARKERS.get()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (customLocation != null) {
|
||||
loc = customLocation;
|
||||
} else {
|
||||
Location l = map.getMyApplication().getLocationProvider().getLastStaleKnownLocation();
|
||||
if (l != null) {
|
||||
loc = new LatLon(l.getLatitude(), l.getLongitude());
|
||||
} else {
|
||||
boolean useCenterOfMap = !(map.getMapViewTrackingUtilities().isMapLinkedToLocation());
|
||||
if (useCenterOfMap) {
|
||||
loc = map.getMapLocation();
|
||||
customLocation = loc;
|
||||
} else if (l != null) {
|
||||
loc = new LatLon(l.getLatitude(), l.getLongitude());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue