3

Is it possible to render google maps in swing or applet?

I know i can also use NASA World Wind but it seems to much overkill for a simple app.

RedBlueThing
  • 42,006
  • 17
  • 96
  • 122
Hamza Yerlikaya
  • 49,047
  • 44
  • 147
  • 241
  • Possible duplicate question: http://stackoverflow.com/questions/996954/java-api-for-google-maps-or-similar – Tyler Jul 02 '09 at 06:01
  • The linked question was just after a static image in their app. Hamza were you after the panning and zooming stuff as well? – RedBlueThing Jul 02 '09 at 06:22
  • @Hamza, ok so the static map solution is not going to suit you. Not sure if you have any other options for a Java app. – RedBlueThing Jul 03 '09 at 09:28

2 Answers2

3

There is JXMapViewer component in SwingX project. You can write new TileProviderInfo,TileFactory to pull images from Google maps but using JXMapViewer to pull maps from Google was illegal when I used it(2008). Google was usually changing Map URL format so your program can be broken unexpectedly if this is still illegal.

in My last project we have used JXMapViewer and Microsoft Visual Earth instead of Google maps.

caltuntas
  • 10,747
  • 7
  • 34
  • 39
1

You can use JxMaps to render Google Maps in your Swing application. It provides Java API that covers most of Google Maps JavaScript API functionality.

Vitaly Eremenko
  • 341
  • 1
  • 5