How to add lat/lon grid lines to JMapViewer
问题 When using JMapViewer, is there any way to automatically display lat/lon grid lines? The JMapViewer.setTileGridVisible method is unfortunately not the same thing. I know it's possible to do it manually, but then I have to figure out when to display what resolutions, etc. Sounds like a pain. 回答1: As an alternative, you can override mouseMoved() in DefaultMapController using the approach shown here. In the handler, you can update a label or set a tooltip, for example: new DefaultMapController