0

GE Plugin Tour Player 功能是否支持显示 .kmz 文件中的模型?如果是这样,我无法让它发挥作用。

这是我设置的测试页面:http: //www.ppacg.org/google_earth/ds/tip/8th-Street-Tour-Model.html

这个.kmz 中有一个模型显示了未来的高速公路改进。使用 Desktop GE 应用程序时,此模型会显示在游览中,但不会显示在 GE 插件上。我检查了路径,它们看起来还不错。我使用 Google Earth API Samples - Playing Tours 中的这段代码作为我的起点: http ://earth-api-samples.googlecode.com/svn/trunk/examples/tour-player.html

提前感谢您提供的任何帮助!

保罗

4

1 回答 1

1

我测试了该页面,Tour 完美运行。也就是说,您在页面上确实有几个错误。

首先,删除线

document.getElementById('installed-plugin-version').innerHTML =
  ge.getPluginVersion().toString();

它给出了错误

Uncaught TypeError: Cannot set property 'innerHTML' of null

另外,css文件的路径不正确。你有

http://earth-api-samples.googlecode.com/svn/trunk/examples/static/prettify.css

它应该是

http://earth-api-samples.googlecode.com/svn/trunk/examples/static/prettify/prettify.css

最后,而不是使用线条

var href = window.location.href.substring(0, window.location.href.lastIndexOf('/')) + '/';
    href += '../8thStreet1a.kmz';

您可以直接链接到该文件:

var href = "http://www.ppacg.org/google_earth/ds/8thStreet1a.kmz"
于 2012-04-13T04:51:11.920 回答