简体   繁体   English

用于 GWT 的静态 Google 地球地图

[英]Static Google Earth Map for use in GWT

I am currently working on a project that uses a Google Earth API library that is wrapped in java so that one may use this library in the Google Web Toolkit to make a Google Earth Widget.我目前正在开发一个项目,该项目使用封装在 java 中Google Earth API 库,以便人们可以在 Google Web Toolkit 中使用该库来制作 Google Earth Widget。 I was wondering if you could get a static implementation or static instance of the Google Earth map so that the user can view this page offline.我想知道您是否可以获得 Google Earth 地图的静态实现或静态实例,以便用户可以离线查看此页面。 I would really appreciate if anyone who has knowledge about this could get back to me as soon as possible.如果任何对此有所了解的人能够尽快回复我,我将不胜感激。 If it is possible to do so, I hope to work with the developer of the library to include this implementation in a future release of the library.如果可能的话,我希望与库的开发人员合作,将这个实现包含在库的未来版本中。 I know that in the desktop application, one can cache the map for offline use.我知道在桌面应用程序中,可以缓存地图以供离线使用。 If it is not possible to obtain a static map then I would like to know if you could cache the map on the user's computer for offline use.如果无法获得静态地图,那么我想知道您是否可以将地图缓存在用户的计算机上以供离线使用。

Thanks,谢谢,

MPH每小时英里数

There's the Static Maps API.静态地图API。 I'm not entirely sure what you mean by "view page offline" in this context, though.不过,在这种情况下,我不完全确定您所说的“离线查看页面”是什么意思。

I think I have found a viable solution.我想我找到了一个可行的解决方案。 I am currently using a gwt-wrapped version of openlayers with an open street map server.我目前正在使用带有开放街道地图服务器的 gwt 包装版本的 openlayers。 This should allow for me to be able to take my project offline if I serve the image tiles from OSM locally on my own machine.如果我在自己的机器上本地提供来自 OSM 的图像块,这应该使我能够使我的项目脱机。 That way I can just call the tiles locally and just update the server when needed.这样我就可以在本地调用磁贴,并在需要时更新服务器。 The only drawback is the server can become quite large in memory and it only adjusts the map to what you have downloaded to the server :/唯一的缺点是服务器的内存可能会变得非常大,它只会根据您下载到服务器的内容调整地图:/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM