0

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.

costel01
  • 1
  • 1
  • 1

4 Answers4

2

You could use TileMill and MapBox to develop and host your map and JavaFX to embed the map in a WebView as Pulsar suggested.

jewelsea
  • 150,031
  • 14
  • 366
  • 406
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
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.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045