Google Earth API - 3d模型叠加

时间:2010-05-07 17:59:58

标签: google-earth collada

有谁知道为什么google earth api只支持COLLADA(.dae)3d模型叠加而不是kmz ???

KmlModel  GEPlugin.createModel   (   string     id    )    

Creates a model. A model is a 3D object described in a COLLADA file. COLLADA files have a .dae file extension. Models are created in their own coordinate space and then located, positioned, and scaled in Google Earth.

Parameters:
     id  ID of the new KmlModel. 

是否可以叠加kmz?

干杯

2 个答案:

答案 0 :(得分:0)

这是因为(Collada)3D模型和KML / KMZ文件根本不同--Collada包含大部分几何绘图基元,而KML / KMZ文件包含地理编码。两者都有功能。

通过KmlNetworkLink() function

将KML或KMZ文件加载到DOM中

答案 1 :(得分:0)

KMZ实际上是一个zip文件,有时包含COLLADA文件中的模型。看看这里:http://www.katsbits.com/tutorials/blender/import-google-sketchup-kmz-models.php

相关问题