Reputation: 1
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.
Upvotes: 0
Views: 5204
Reputation: 159416
You could use TileMill and MapBox to develop and host your map and JavaFX to embed the map in a WebView as Pulsar suggested.
Upvotes: 2
Reputation: 205785
JMapViewer
, mentioned here, works well in a Swing application, but I haven't tried it in a Java Desktop Application.
Upvotes: 1
Reputation: 11909
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
Upvotes: 1
Reputation: 9705
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.
Upvotes: 1