Does anybody know something similar to Google Maps for using in a Java Desktop Application? The only functionality I'm interested in is marking a point on the map and find the coordinates of that spot.
Asked
Active
Viewed 5,051 times
0
-
2Can I ask, what is wrong with Google Maps? – Ruuhkis May 29 '12 at 19:57
-
1One possible reason might be simply licensing issues - but I'm guessing of course. – mikołak May 29 '12 at 20:12
-
http://stackoverflow.com/questions/1283482/interactive-map-viewer-desktop-application-in-java – lfergon May 29 '12 at 20:19
4 Answers
1
A popular alternative is OpenStreetMap. Unfortunately, I can't provide exact implementation details, as I haven't tried it yet, but it certainly seems to be possible to use it in Java, according to their Wiki.

mikołak
- 9,605
- 1
- 48
- 70
-
-
Actually JMapViewer and MapBox both use OSM and I'm guessing so does TileMill – Bart Burg Apr 07 '13 at 15:14
1
See this question and answers: Alternative Map API's (Like Google Maps)
To embed them in a Java app you can easily embed a webpage with JavaFX 2 webview (javafx 2 components can be used in swing too). Or use a library they provide (if any) or implement the api and rendering yourself.
Very easy example of how to embed Google Maps in JavaFX 2:
http://java-buddy.blogspot.se/2012/03/embed-google-maps-in-javafx-webview.html

Community
- 1
- 1

Mattias Isegran Bergander
- 11,811
- 2
- 41
- 49
1
JMapViewer
, mentioned here, works well in a Swing application, but I haven't tried it in a Java Desktop Application.