GoogleEarth inside Java Swing [closed]
Asked Answered
R

8

7

Is it possible to embed a GoogleEarth view inside a Java Swing app? If so, could you please point me to a tutorial explaining how to do it?

Rockwood answered 20/8, 2009 at 0:22 Comment(0)
G
5

Embedding GoogleEarth inside Java Swing App is not feasible. Legally or otherwise. However you may find a way to embed Google Map on a frame.

Edit: Found this google post.

Gadgetry answered 31/8, 2009 at 9:23 Comment(1)
The Google post was exactly what I was looking for. Thanks!Rockwood
R
6

There's also NASA's World Wind SDK.

Rockwood answered 20/8, 2009 at 0:42 Comment(0)
G
5

Embedding GoogleEarth inside Java Swing App is not feasible. Legally or otherwise. However you may find a way to embed Google Map on a frame.

Edit: Found this google post.

Gadgetry answered 31/8, 2009 at 9:23 Comment(1)
The Google post was exactly what I was looking for. Thanks!Rockwood
I
3

Even though technically it is possible (using JXMapViewer), legaly it is not. Google does not allow using Google Maps outside of the browser.

One possible solution would be to embed JWebPane (http://weblogs.java.net/blog/alex2d/archive/JWebPaneJ1.pdf) into your Swing App, but it is still not ready :(

Indigestible answered 25/8, 2009 at 17:2 Comment(0)
L
2

I did a project on vehicle tracking system using GPS and GSM at my college. In the project we used to get the latitude and longitude value of vehicle and show it in Google map. The code we used for creating a frame with Google location is Map code.java

The frame is created by creating an Object of the class and calling the method

createmap(String x,String y);

Where, x-latitude and y-longitude.

Lobectomy answered 9/10, 2012 at 12:25 Comment(0)
R
1

I just discovered a link on java.net ...

Building Maps into Your Swing Application with the JXMapViewer

Rockwood answered 20/8, 2009 at 0:29 Comment(0)
L
1

Here's a lil' tutorial which explains it all:

http://www.brantb.com/2007/12/java-and-google-earth-com-api.html

It uses the Google Earth COM API

Lowercase answered 29/8, 2009 at 14:14 Comment(0)
D
0

You can use Jawin to extract native stubs and use it to embed Google Earth on a Java Swing container. I've worked on it before, please check my demo video on youtube

http://www.youtube.com/watch?v=2Pf8V8uubVM

As WTP'-- pointed out to the Blog, http://www.brantb.com/2007/12/java-and-google-earth-com-api.html Brant used "com4J" to generate the stubs.

Decemvir answered 29/9, 2012 at 16:1 Comment(0)
M
-1

you could us a java RDP client and run Google Earth on a remote desktop

Meson answered 31/8, 2012 at 13:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.