OpenMap-java/openmap

PanMouseMode does not render the buffered map image correctly when the top edge of the projection is at or above Lat 90

Closed this issue · 1 comments

In the class PanMouseMode, line 253, in method mousePressed. the paintedImage is set to
paintedImage = new OMRaster(ul.getY(), ul.getX(), 0, 0, bufferedMapImage);
if the ul.getY() call returns "90" then the image will not be rendered for some reason. Changing that line to this solves the problem and everything renders as expected:
paintedImage = new OMRaster(ul.getY() < 90 ? ul.getY() : 89.9999999999, ul.getX(), 0, 0, bufferedMapImage);

Hi!

Thanks for the heads-up! I’ve updated the code for the next release.

  • Don

On Apr 28, 2016, at 2:13 PM, kwg1990 notifications@github.com wrote:

In the class PanMouseMode, line 253, in method mousePressed. the paintedImage is set to
paintedImage = new OMRaster(ul.getY(), ul.getX(), 0, 0, bufferedMapImage);
if the ul.getY() call returns "90" then the image will not be rendered for some reason. Changing that line to this solves the problem and everything renders as expected:
paintedImage = new OMRaster(ul.getY() < 90 ? ul.getY() : 89.9999999999, ul.getX(), 0, 0, bufferedMapImage);


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub #23