JXMapViewer

From OpenStreetMap Wiki
Jump to: navigation, search

JXMapViewer is an open source Swing component, a special JPanel that presents a slippy map in a java app. Java GUI developers can add it to any Swing application, the way you would with any other JPanel. It loads in raster tiles and presents them.

'Building Maps into Your Swing Application with the JXMapViewer' article on java.net

JXMapKit is preconfigured with OpenStreetMap tile server as an option so you can switch to use it by setting the defaultProvider property in the Property Sheet.

See Also

  • JMapViewer - Similar, but less complex and independent of SwingX. Contains a demo desktop app. Developed by OpenStreetMap developers based on code from JOSM.
  • JXMapViewer2 - Based on JXMapViewer but more up-to-date and independent of SwingX.