Embed Google Earth In Your Site

Brady Forrest Brady Forrest 2008/05/28

The Google Earth Plugin was just released this morning (Radar post) and there is already a handy third-party tool available. This is unsurprising considering the general buzz at Google I/O. If you want to embed a 3D Google Earth Map in your site simply follow the directions below.

Browse to the TakItWithMe.com Google Earth Embedded Map Tool

  1. Paste in a Google Earth KML link or Google Maps MyMap link if you'd like to include an overlay
  2. Click on the 'Load Preview' button. If you did not provide a KML link, you will get a warning before you continue
  3. Use the Map Navigation Controls or your mouse to set the Google Earth viewpoint you’d like to be the default for your map
  4. Click on the 'Set Center and Zoom' Button
  5. Click on the 'Generate Embed Code'
  6. Copy the resulting code and paste it into your webpage or blog where you'd like the map to appear
  7. To create another map, simply refresh the page and start again

I am sure that embedding will be available as soon as Google integrates GE into their main site. While this is something Google hasn't committed to, I think we can assume it will happen. This release of the plugin is Windows only. Michael Jones, CTO of Google Earth, stated that Mac and Linux plugins will be available by August. I assume that Google will wait for those releases before the integration happens.

I met the developer via Frank Taylor at Google I/O. Frank actually has an embed in his post -- I don't have windows on this machine so I can't test before embedding a sample on Radar.

翻译:joylite

Google Earth插件于今天早上(Radar 发表时间)刚刚发布。此前,已经有便捷的第三方工具可用。对Google I/O来说,这并不是令人吃惊的举动。如果你想在网站中嵌入一个3D Google Earth地图,可以简单地根据如下说明创建。

参考TakItWithMe.com Google Earth Embedded Map Tool

1.如果你想包括一个overlay, 直接粘贴一个Google Earth KML 链接或者Google Maps MyMap链接。
2.点击”Load Preview”按钮。如果你没有提供一个KML链接,在继续之前,会有警告。
3.使用地图导航控件或者鼠标将Google Earth viewpoint设置为你的地图的默认位置。
4.点击”Set Center and Zoom”按钮
5.点击”Generate Embed Code”
6.复制生成的代码,并粘贴到你希望显示的网页或者blog上。
7.如需创建另一个地图,刷新页面并继续。

我相信这种嵌入很快会在Google在其主站上整合了GE之后出现。然而,Google并没有承诺这一点,但我认为我们可以假设这会发生。该release仅发布了Windows版本。Michael Jones, Google Earth的CTO申明Mac和Linux版本将会在8月提供。我认为Google会等到这些版本发布之后再做整合。

在Google I/O上我通过Frank Taylor见到了开发者。Frank在他的文章中已经有一个整合 –我的机器上没有Windows,所以不能在Radar上做个测试。

Discussion

Enter your comment (wiki syntax is allowed):
blog/brady/embed_google_earth_in_your_site.txt · 最后更改: 2008/09/20 由 radarman
O'Reilly Home | Privacy Policy ©2005-2008, O'Reilly Media, Inc.
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.