Fix marker size.
This commit is contained in:
parent
8acc13c7f6
commit
a1be0fc586
@ -30,8 +30,8 @@ public class MarkerAutoScaling extends Marker {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void draw(BoundingBox boundingBox, byte zoomLevel, Canvas canvas, Point topLeftPoint) {
|
public synchronized void draw(BoundingBox boundingBox, byte zoomLevel, Canvas canvas, Point topLeftPoint) {
|
||||||
int width = (int) PaintUtils.getStrokeWidth(12, zoomLevel),
|
int width = (int) PaintUtils.getStrokeWidth(8, zoomLevel),
|
||||||
height = (int) PaintUtils.getStrokeWidth(24, zoomLevel);
|
height = (int) PaintUtils.getStrokeWidth(16, zoomLevel);
|
||||||
BufferedImage bfd = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR);
|
BufferedImage bfd = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR);
|
||||||
Graphics2D g = bfd.createGraphics();
|
Graphics2D g = bfd.createGraphics();
|
||||||
g.drawImage(this.originalImage.getScaledInstance(bfd.getWidth(), bfd.getHeight(), Image.SCALE_SMOOTH), 0, 0,
|
g.drawImage(this.originalImage.getScaledInstance(bfd.getWidth(), bfd.getHeight(), Image.SCALE_SMOOTH), 0, 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user