0

如果我有一个KmlPolygon对象,如何将其转换为 KML 字符串?此功能将允许您保存任何已建模的内容并将其用作 Google 地球桌面中的图层,甚至可以将其重新加载到 Web 插件中。

编辑

这将与fetchKml相反。

4

1 回答 1

0

Found it. You can use the getKml() function of KmlFeature to return the KML string. You can also add multiple KmlPolygon objects by constructing a KmlDocument using the dom.buildDocument() of the utility library, and then using getKml() on that.

于 2013-05-20T03:37:20.287 回答