Fixed Avoid road icon positioning.
This commit is contained in:
parent
522d60ea09
commit
725a88baff
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ public class ImpassableRoadsLayer extends OsmandMapLayer implements ContextMenuL
|
|||
float x = tileBox.getPixXFromLatLon(location.getLatitude(), location.getLongitude());
|
||||
float y = tileBox.getPixYFromLatLon(location.getLatitude(), location.getLongitude());
|
||||
float left = x - roadWorkIcon.getWidth() / 2;
|
||||
float top = y - roadWorkIcon.getHeight() / 2;
|
||||
float top = y - roadWorkIcon.getHeight();
|
||||
canvas.drawBitmap(roadWorkIcon, left, top, paint);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue