Skip to content

Strange behavior in overlay painting from zoom 2 down to 0 #115

@ulixit

Description

@ulixit

Hi,
also from me, first of all, thanks for the great library.

I noticed a strange behavior in overlay painting when zoom level drops from 3 to 2 and then down to 1 and 0.
To evidence this strange thing put these lines in example 4, FancyWaypointRenderer.java just near the end of paintWaypoint(...), right before g.dispose(). Recompile and run.

Concentric circles paints well until zoom 3. From zoom 2 down they are no longer concentric.

// paints a blue circle with an internal white circle
g.setColor(Color.BLUE);
g.fillOval(x-7, y-7, 14, 14);
g.setColor(Color.WHITE);
g.fillOval(x-4, y-4, 8, 8);
System.out.println("zoom"+viewer.getZoom());

This was with openjdk 11.0.11 on Raspbian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions