Fix arrows direction when my location is on

This commit is contained in:
Alexander Sytnyk 2017-09-20 13:48:14 +03:00
parent 0eccab559c
commit 3fd4f89c1d

View file

@ -265,7 +265,7 @@ public class MapMarkersLayer extends OsmandMapLayer implements IContextMenuProvi
} }
if (settings.SHOW_ARROWS_TO_FIRST_MARKERS.get()) { if (settings.SHOW_ARROWS_TO_FIRST_MARKERS.get()) {
LatLon loc = myLoc == null ? tileBox.getCenterLatLon() : new LatLon(myLoc.getLatitude(), myLoc.getLongitude()); LatLon loc = tileBox.getCenterLatLon();
List<MapMarker> mapMarkers = markersHelper.getMapMarkers(); List<MapMarker> mapMarkers = markersHelper.getMapMarkers();
int i = 0; int i = 0;
for (MapMarker marker : mapMarkers) { for (MapMarker marker : mapMarkers) {