Show guide lines on finger tap
This commit is contained in:
parent
f71bb41264
commit
a4d46b2823
1 changed files with 8 additions and 1 deletions
|
@ -219,7 +219,14 @@ public class MapMarkersLayer extends OsmandMapLayer implements IContextMenuProvi
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPrepareBufferImage(Canvas canvas, RotatedTileBox tileBox, DrawSettings nightMode) {
|
public void onPrepareBufferImage(Canvas canvas, RotatedTileBox tileBox, DrawSettings nightMode) {
|
||||||
Location myLoc = map.getMyApplication().getLocationProvider().getLastStaleKnownLocation();
|
Location myLoc;
|
||||||
|
if (useFingerLocation && fingerLocation != null) {
|
||||||
|
myLoc = new Location("");
|
||||||
|
myLoc.setLatitude(fingerLocation.getLatitude());
|
||||||
|
myLoc.setLongitude(fingerLocation.getLongitude());
|
||||||
|
} else {
|
||||||
|
myLoc = map.getMyApplication().getLocationProvider().getLastStaleKnownLocation();
|
||||||
|
}
|
||||||
MapMarkersHelper markersHelper = map.getMyApplication().getMapMarkersHelper();
|
MapMarkersHelper markersHelper = map.getMyApplication().getMapMarkersHelper();
|
||||||
List<MapMarker> activeMapMarkers = markersHelper.getMapMarkers();
|
List<MapMarker> activeMapMarkers = markersHelper.getMapMarkers();
|
||||||
int displayedWidgets = map.getMyApplication().getSettings().DISPLAYED_MARKERS_WIDGETS_COUNT.get();
|
int displayedWidgets = map.getMyApplication().getSettings().DISPLAYED_MARKERS_WIDGETS_COUNT.get();
|
||||||
|
|
Loading…
Reference in a new issue