costel01
costel01

Reputation: 1

Google Maps alternatives for using in a Java Desktop Application

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

Answers (4)

jewelsea
jewelsea

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

trashgod
trashgod

Reputation: 205785

JMapViewer, mentioned here, works well in a Swing application, but I haven't tried it in a Java Desktop Application.

Upvotes: 1

Mattias Isegran Bergander
Mattias Isegran Bergander

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

mikołak
mikołak

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

Related Questions