diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapMarkersWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapMarkersWidgetsFactory.java index 36247023e5..17fa40c927 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapMarkersWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapMarkersWidgetsFactory.java @@ -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()); } }