Fix vertical offset
This commit is contained in:
parent
918ada71c9
commit
cd688b4e06
1 changed files with 1 additions and 2 deletions
|
@ -173,8 +173,7 @@ public class AidlMapLayer extends OsmandMapLayer implements IContextMenuProvider
|
|||
canvas.drawBitmap(image, null, getDstRect(x, y, smallIconSize / 2), bitmapPaint);
|
||||
} else if (pointsType == PointsType.BIG_ICON) {
|
||||
bitmapPaint.setColorFilter(null);
|
||||
// FIXME: vertical offset
|
||||
float vOffset = bigIconBg.getHeight() * 0.9f;
|
||||
float vOffset = bigIconBg.getHeight() * 0.91f;
|
||||
int imageCenterY = (int) (y - vOffset + bigIconBg.getHeight() / 2);
|
||||
canvas.drawBitmap(bigIconBg, x - bigIconBg.getWidth() / 2, y - vOffset, bitmapPaint);
|
||||
canvas.drawBitmap(image, null, getDstRect(x, imageCenterY, bigIconSize / 2), bitmapPaint);
|
||||
|
|
Loading…
Reference in a new issue