OpenMap-java / openmap

OpenMap is an Open Source JavaBeans-based programmer's toolkit. Using OpenMap, you can quickly build applications and applets that access data from legacy databases and applications.
http://openmap-java.org
Other
73 stars 43 forks source link

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

Closed kwg1990 closed 8 years ago

kwg1990 commented 8 years ago

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);

dfdietrick commented 8 years ago

Hi!

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

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 https://github.com/OpenMap-java/openmap/issues/23