-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange behavior in overlay painting from zoom 2 down to 0 #115
Comments
Thanks, I will try to reproduce the error. |
Sorry for the long delay. I am able to reproduce the problem and will debug it a bit. Maybe I can find something... in the |
Yes. After some more attempts I recently found a possible problem with Graphics2D.translate(...) which is presumably called somewhere before paintWaypoint(...)
|
There is debuggingand there is debugging The first one refers to the process of diligently and systematically analyzing a flaw (preferably not in your own code), in order to solve the problem. The latter refers to things of which you'd hesitate to admit publicly that you have done them (and that may be fueled by some geeky curiosity, and may not even lead to a solution). When inserting the following debugging statements in the
(which may not even work in the newer Java versions, with all this "module sealing" and such...), then the output may be something like
Looking at the code of
Now. There's that The solution... might be... well, ... handwavingly: to carry this translation, in an "un-applied form", until shortly before it is supposed to be used for rendering, then do the computations (in An aside: I noticed that when changing
to
then the ellipses are drawn at the wrong place, and I haven't figured out why. It seems like it's flipped vertically or so. An aside to the aside: Similar pixel-artifacts still appear with |
Wow, impressive research, thanks a lot! |
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.
This was with openjdk 11.0.11 on Raspbian
The text was updated successfully, but these errors were encountered: