Java&谷歌地图 [英] Java & Google Maps

查看:162
本文介绍了Java&谷歌地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在swing或applet中呈现Google地图?

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

我知道我也可以使用美国宇航局World Wind ,但它似乎对一个简单的应用程序太过分了。

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

推荐答案

SwingX项目中有JXMapViewer组件。您可以编写新的TileProviderInfo,TileFactory从Google地图中提取图像,但使用JXMapViewer从Google中提取地图在我使用它时是非法的(2008)。 Google通常会更改地图网址格式,所以如果这仍然是非法的,您的程序可能会意外中断。

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.

在我上一个项目中,我们使用了JXMapViewer和Microsoft Visual Earth,而不是Google地图。

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

这篇关于Java&谷歌地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆