JXMapViewer will change the orientation to the title

I am trying to use JXMapViewer (from swingx-ws) with Open Street Maps. I was wondering if it is possible to display map tiles in JXMapViewer based on the title and not in the north. For example, conventional car GPS navigation systems allow you to do this.

I looked through the documentation and there seems to be no easy way to do this. Is there anything else that does this besides JXMapViewer?

+3
source share
1 answer

Nevermind, I found a solution. Here's how I did it (if anyone is interested):

JXMapViewer . JPanel BufferedImage, , .

super.paint() → BufferedImage- > → .

, convertGeoPositionToPoint convertPointToGeoPosition , .

+3

Source: https://habr.com/ru/post/1741477/


All Articles