我有 3 台装有 Google 地球的计算机。
我想要的是以某种方式制作一个 KMZ 文件,所有 3 台电脑都通过网络使用该文件。
因此,当我将笔放在电脑 1 上的某个位置并保存时,笔也会共享到电脑 2 和 3,实时!无需另外两台计算机即可重新打开 KMZ 文件。
这有可能吗?
最佳答案
如果您更新服务器上的内容并使用 NetworkLink(启用自动刷新功能)在客户端中加载共享 KML,但以交互方式相互共享在 Google 地球客户端中所做的更改,则可以同步多个 Google 地球桌面客户端并不是那么容易做到的。
您可以使用 Google Earth API 实现共享并共享在网络浏览器中运行的 Google 地球实例。
以下是 Google Earth API 演示库中示例应用程序的说明,可以作为起点:
Earth Pad is an App Engine app that allows multiple users to collaboratively browse the globe. Earth Pad allows multiple users to share the same Earth viewing experience; when one user changes the view, it updates for the others. Users can create placemarks, which can then be seen by all the other users in the session, and even chat.
Note when you start the Earth Pad app it requests permission to access your Google Account and your email address to allow sharing a session. You'll want to run the app in multiple web browser windows and/or different web browsers. You can use one Google Account for that.
访问https://developers.google.com/earth/documentation/demogallery并搜索“Earth Pad”以跳转到该应用程序。
示例代码可用here .
更新:
注意:Google Earth API 自 2014 年 12 月 12 日起已被弃用,因此需要使用 Google Maps V3 API 创建此功能。 .
关于google-maps - Google 地球 - 多台计算机之间的实时同步,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22245593/