Fix marker size.

This commit is contained in:
Holt59 2018-03-04 21:24:30 +01:00
parent 8acc13c7f6
commit a1be0fc586

View File

@ -30,8 +30,8 @@ public class MarkerAutoScaling extends Marker {
@Override
public synchronized void draw(BoundingBox boundingBox, byte zoomLevel, Canvas canvas, Point topLeftPoint) {
int width = (int) PaintUtils.getStrokeWidth(12, zoomLevel),
height = (int) PaintUtils.getStrokeWidth(24, zoomLevel);
int width = (int) PaintUtils.getStrokeWidth(8, zoomLevel),
height = (int) PaintUtils.getStrokeWidth(16, zoomLevel);
BufferedImage bfd = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR);
Graphics2D g = bfd.createGraphics();
g.drawImage(this.originalImage.getScaledInstance(bfd.getWidth(), bfd.getHeight(), Image.SCALE_SMOOTH), 0, 0,