Add target destionaion/ruler/current location
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 131 B |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 1.8 KiB |
|
@ -97,19 +97,19 @@ public class PointNavigationLayer extends OsmandMapLayer implements IContextMenu
|
|||
index ++;
|
||||
if (isLocationVisible(ip)) {
|
||||
int marginX = intermediatePoint.getWidth() / 3;
|
||||
int marginY = 2 * intermediatePoint.getHeight() / 3;
|
||||
int marginY = intermediatePoint.getHeight();
|
||||
int locationX = view.getMapXForPoint(ip.getLongitude());
|
||||
int locationY = view.getMapYForPoint(ip.getLatitude());
|
||||
canvas.rotate(-view.getRotate(), locationX, locationY);
|
||||
canvas.drawBitmap(intermediatePoint, locationX - marginX, locationY - marginY, bitmapPaint);
|
||||
canvas.drawText(index + "", locationX + marginX, locationY - marginY / 2, textPaint);
|
||||
canvas.drawText(index + "", locationX + marginX, locationY - 2 * marginY / 3, textPaint);
|
||||
canvas.rotate(view.getRotate(), locationX, locationY);
|
||||
}
|
||||
}
|
||||
LatLon pointToNavigate = targetPoints.getPointToNavigate();
|
||||
if (isLocationVisible(pointToNavigate)) {
|
||||
int marginX = targetPoint.getWidth() / 3;
|
||||
int marginY = 2 * targetPoint.getHeight() / 3;
|
||||
int marginY = targetPoint.getHeight();
|
||||
int locationX = view.getMapXForPoint(pointToNavigate.getLongitude());
|
||||
int locationY = view.getMapYForPoint(pointToNavigate.getLatitude());
|
||||
canvas.rotate(-view.getRotate(), locationX, locationY);
|
||||
|
|