Swing JxMapViewer: focus on a object and set corresponding zoom level
问题 I trying to integrate JxMapViewer into my swing application. I have drawn a line on the map between two way points. Now I wish to implement a functionality like: Wherever I am on a map, whatever zoom level is set, whenever i click on a button (or some external event), focus should be shifted to line i have drawn (i.e. indirectly on the two waypoints) Secondly, the zoom level should be set such that portion of a map containing those two waypoints should be visible. I see that we have