Fix point's text location of AIDL map layer

This commit is contained in:
crimean 2018-06-13 11:01:36 +03:00
parent 0763c78aba
commit 4401a569e4

View file

@ -93,7 +93,7 @@ public class AidlMapLayer extends OsmandMapLayer implements IContextMenuProvider
canvas.drawCircle(x, y, r + (float)Math.ceil(tileBox.getDensity()), pointOuter); canvas.drawCircle(x, y, r + (float)Math.ceil(tileBox.getDensity()), pointOuter);
canvas.drawCircle(x, y, r - (float)Math.ceil(tileBox.getDensity()), pointInnerCircle); canvas.drawCircle(x, y, r - (float)Math.ceil(tileBox.getDensity()), pointInnerCircle);
paintTextIcon.setTextSize(r * 3 / 2); paintTextIcon.setTextSize(r * 3 / 2);
canvas.drawText(point.getShortName(), x, y + r / 2, paintTextIcon); canvas.drawText(point.getShortName(), x, y + r * 2.5f, paintTextIcon);
} }
} }
} }