GoogleEarth inside Java Swing

社会主义新天地 提交于 2019-11-27 23:58:46

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.

There's also NASA's World Wind SDK.

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 :(

Shabeer V P K

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.

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

Building Maps into Your Swing Application with the JXMapViewer

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

Chandra

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!